Create class for filter to simplyfy coding