Scala app for multi threading