Added a class to register cubes