add a failure test for filter
pass the filter test
add a failure test for flatMap
pass the flatMap
implement fitler using flatMap