demo: add func definition