added math.java class