Solve Exercise 3.16
Solve Exercise 3.17