Homotopy types as $\infty$-groupoids