formatted Grid.hpp