basic use of functions