If $G_1\cong G_2$ and $H_1\cong H_2$ then $G_1 \times H_1 \cong G_2 \times H_2$
Proof:
$f_G:G_1\rightarrow G_2$ and $f_H:H_1\rightarrow H_2$.
Question 1: Is the following statement valid? Does it belong in this proof?
$$f_G:G_1\times A \rightarrow G_2 \times A\textrm{ for any group }A$$
Question 2: Can I finish the proof like this? Do I need to show any steps in between?
$$\left[\ f_H \circ f_G\right] :G_1\times H_1 \rightarrow G_2 \times H_2$$
$f_G$ and $f_H$ are both bijective. Thus $f_H\circ f_G$ is bijective. Therefore, $G_1 \times H_1 \cong G_2 \times H_2$.
Does this work? I was considering breaking it down further and manipulating individual elements in the groups $G_1,G_2,H_1,H_2.$ I would appreciate your advice. Thanks