updated recursion exercise submission