Just for fun

Implemented the recursive example just for fun