Cube class