First version of the simulation