Scala-like java classes