function to demo how to define function