Simple recursion and tests added