added solutions of tasks for chapter 6