morning kata, implement filtering