exercise 6.2 done.