add exercise 40