Exercise 4.2 - flatMap & getOrElse implemented