added AppFunc example