First experiment with Scala