cubes for cpp