Update Ex1.scala