Homework1 Assignment Scala