another simple example of functions