Scala structure