add example for function application