adding exercise 47