Added some example code for generating a grid.