I have a finite, non-abelian $p$-group $G$ with $|G|=p^3$. I want to show that $|Z(G)| = p$ and $G/Z(G) \simeq \mathbb{Z}_p \times \mathbb{Z}_p$, where $Z(G)$ is the center of $G$.
From the definitions, I know that for every $g \in G$, there's a natural number $\alpha_g$ such that ord$(g)=p^{\alpha_g}$, that $Z(G) = \{ z \in G \,|\, zg =gz \,\, \forall g \in G\}$ and that $G/Z(G) = \{gZ(G) \,|\, g \in G \}$. From a lemma, I know that $|Z(G)| > 1$. Also, I suspect that I need the class equation $|G| = |Z(G)| + \sum_i (G:C_G(\omega_i))$.
However, I don't see how these parts may fit together.