provided by edx
runSimulation working