Added Cube class and Registry