added basic grid framework