get the solution for task 1