add example for function definition