1: \begin{abstract}
2: Let $G$ be a finite $2$-group of maximal nilpotency class, and let $BG$ be its classifying space.
3: We prove that iterated Massey products in $H^*(BG;\F_2)$ do characterize the homotopy type of $BG$ among $2$-complete spaces with
4: the same cohomological structure. As a consequence we get an alternative proof of the modular isomorphism problem for $2$-groups of maximal nilpotency class.
5: \end{abstract}