Add task2 solution.