CORRECTED SCALA STYLE