a study in cubes