A grid based model