scala-basic: patmat assignment