updated Arithmetic.java