complete exercise 6.5