Added exercise 40