answered exercise 5