Simulation of number changed to 3,40; task2 vectorized; now inputting from commandArgs to read simulation number