ex. 3.21 - filterWithFlatMap