Completes chapter 5 exercises