implemented get grids in Cube.py