Suppose $G$ is a group of order $4$ and $x^2=e$ for all $x$ in $G$. Prove that $G$ is isomorphic to $Z_2\oplus Z_2$.
My attempt:
(1) Show that $G$ is abelian.
\begin{align*}
\text{Take }x,y\in G.&\text{Then }xy\in G.\\
(xy)^2&=e\\
\text{Thus } (xy)^{-1}&=xy\\
\text{Also by socks-shoe property }(xy)^{-1}&=y^{-1}x^{-1}=yx\\\\\text{Thus we have }&xy=yx \text{ and $G$ is abelian}.
\end{align*}
(2) Show that $Z_2\oplus Z_2$ is abelian.
$$\text{This can be easily verified.}$$
(3) Define the isomorphism $\phi$
$$\text{Let $G$}=\{e,a,b,c\}\\
\text{Define } \phi \text{ from $G$ to $Z_2\oplus Z_2$ such that}\\
\phi(e)=(0,0)\\\phi(a)=(0,1)\\\phi(b)=(1,0)\\\phi(c)=(1,1)$$
$$\text{Clearly $\phi$ is one-one and onto.}$$
How do I show that $\phi$ is operation preserving?
If this is not the right way the proof is going, please post the solutions.