basic grid construction and drawing