fixed exercise 7