The grid generator