Rational.java hw