Task 2, 3

Task 2 (without 2.3), task 3 (without 3.3 and 3.5)