Reworded a comment.
Added filter_example to demonstrate the use of a Boolean function with filter.