completed exercise 7-1