Exercises 3_(19, 20, 21) (map, flatMap, filter in terms of foldRight)