Solved all task with the same method, last one task 6