Solution task 3