Implementing the grid