Scala Homework1