Scala code using the Akka library