add exercise 31