Initial version with a Scala example