Progress on chapter 6 exercises