Solution to Chapter 6