exercises chapter 6 solved