Cube class created