task3 solution added