Task2 solution