Example implementation of filter.