a scala version of sofia-demo-tipcal