implemented create_grid_from and create_cells_from methods