Working Model

First working model of the simulation