ch 4, ex 1 (pattern matching i map and getOrElse only)