Added library
Working recursion method