Exercise solutions chapter 6