Setting up grid class