Update Exercise 1.22 (section 1.5.1)