Using the filter() function to pass or reject data