Set up grid class