Sample showing usage and extensibility of recursion.