Completed exercises for Chapter 5.6