Added Exercise 1.39, 1.40