I have implemented the first task test case.