Exercise 1-17 and Exercise 1-18