1st version of gridGenerator