Easy method to generate a grid