add exercise 1.22 to 1.30