Completed exercises in chp 7.
Merge branch 'chp7_exercises'