updated Equations.java