added solutions of tasks for chapter 4