completed exercise 6-3