Add basic grid functionality and calculations