created cell and grid class