Scala: Case Classes with Pattern Exercise