modified exercise 4-1