Solved exercise 1 : implementing map, flatMap, getOrElse, orElse and filter on Option[A]