Scala working