adding simulation for task 2
replacing simulation