Update Lab5.scala

14/15 tests passed