First version of the simulator