Change TailRecursion code