a group of cubes and squares