sample: update with a function-calling sample