sums and grids