Can you use the built-in filter() operator for filters to demonstrate their use?
Also the code will be easier and filter() will be tested.