Update Lab3.scala