Add lines to the grid