modified exercise 2;