Solutions for Chapter 6 exercises