modified exercise 1.10