I think here we lose the lesson on recursion from the original exercise, which I think is worthwhile