slope_style_score, written in java