Computer code used the run the simulations