Inserting the grid