Finish ch06 exercises