add example for listener