Scala PA example