completed exercise 5-2