modified exercise 5