Grid model

Pulling changes for basic working logic implementation in GridModel