Update project3.scala