The methods ```setup_1D_cube```, ```setup_2D_cube```, ```setup_3D_cube```, ```setup_4D_cube``` and ```setup_7D_cube``` could all be functions outside the class, since they do not use ```self```.