AVERAGING OVER ALL CELLS, PRICELESS CODE