added an example of how to use functions