Scala class