complete exercise 5.6