add basic function sample