adding exercise 39