Recursion Function or something different?

Thank you very much, I understand it now. This was very useful. You the goat