implemented solution for fib task