Complete simulation code for problem 1.9