Source code of the simulation