alright, how do I do the recursion and modification, as specified in the comments?