Update Exercise 15.47.r