Update patter.scala