add a function definition example