First version of simulation