Sample Scala Code