Task 1 fixed.
task 2
Task 3
Merge pull request #10 from rburakov/r1

R1