added example of functions