pseudocode to make functions to run the simulation functions multiple times