exercise 7.6.2 complete