modified exercise1 homework1