Scala 2nd assignment