Simulation set up (Questions 1~4)

Finished code for the first section