added first version of Rational.java