example with functions with a variable number of arguments
simple example of closures
simple factorial function