Completed task3 keeping the dependences