Implemented gridModel