Update Project2.scala