Added a method to make grids
See method makeGrid - need to complete the part where blockIndexes are made.