Implemented simple grid approach