adding grid.py