add example for Issue #22
fix Issue #22