completed exercises for Hartl Chapter 6