completed exercise 4-2