Add filtering example. Fixes #420