completed exercise 4-5