add a 2d grid class