examples of functions in real life