Grid

Implemented the grid.