Creattion of grid class