Scala programming assignments