Adding grid data structure