resubmitted exercise 4.2