add code for quiz5, MatarialMeasure.java