Update Homework06.scala