Update Cube.java