adding exercise 7