added Scala multithreaded template