Adding grid.py