Solved exercise 22 : implementing filter (filter_) using flatMap