added an example of functions and recursion