Scala demo for Stackoverflow