Main Class with 1st grid generation