Added demo code for Scala