Basic example of a Maybe Monad implementation in Scala