Position class for the grid.