Update FrequencyDiff.java