completed exercise 5-3