adding exercise 40