Corrected the recursive version