Update project2.scala