refactoring to have a grid object