Task 4 : Simulation