wrote basic grid