Let $(A, \star)$ and $(B, \circ)$ be groups and let $A \times B$ be their direct product (as defined in Example
6). Verify all the group axioms for $A \times B:$
(a) prove that the associative law holds: for all $\left(a_{i}, b_{i}\right) \in A \times B, i=1,2,3$ $\left(a_{1}, b_{1}\right)\left[\left(a_{2}, b_{2}\right)\left(a_{3}, b_{3}\right)\right]=\left[\left(a_{1}, b_{1}\right)\left(a_{2}, b_{2}\right)\right]\left(a_{3}, b_{3}\right)$