add anon function sample