minor modified MatarialMeasure.java, for quiz4 in chapter5