Let $G$ be a group of order $p^2$. Use the class equation to prove that $G$ is abelian.
The conjugacy class equation, at least how I remember it, is $$ |G| = |Z(G)|+\sum_{x\in I \backslash Z(g)} \frac{|C|}{C_G(x)} $$ where $|Z(G)|$ is the center of $G$, and $|C_G(x)|$ is the central subgroup of $G$.
I am tempted to start with using Lagrange's theorem, which gives possible orders $o(x,y)$ of $1,p,p^2$.
Now, to prove that $G$ is abelian, perhaps I need to prove that $|C_G(x)|=G$? ($C_G(x)$ being the central subgroup in which every element inside of it commutes)