change the number of simulation to be 50, delete setwd()