ruby: filter.rb