Completes chapter 6 exercises