Let $G$ be a non abelian group of order $p{^4}$,$p$ is a prime.Let $N$ be a normal subgroup of $G$ with |$N$|=$p$ and $G/N$ is abelian.Then prove that $N$ is a subgroup of $Z(G)$ and $Z(G)$/$N$ is a cyclic group.
So far what I get as following:|$Z(G)$|=$p$,$p{^2}$. Since $G$/$N$ is abelian $G{^1}$(Commutator subgroup of G) is contained in $N$.Again since $G$ is non abelian $G{^1}$=$N$.Now if |$Z(G)$|=$p{^2}$, |$G/Z(G)$|=$p{^2}$ so $G/Z(G)$ is abelian hence $G{^1}$ is contained in $Z(G)$.So we are done if |$Z(G)$|=$p{^2}$.I can not show $G{^1}$ =$Z(G)$ if |$Z(G)$|=$p$.Please help .thank you.