completed exercise 6-2