Input output with Scala