Add task2 of second homework