basic grid
psuedocode