Added recursion example. Fixes #346