solved chapter 6