added example on how to write a filter