update PatternMatch.scala