added Cube class