Simple Fraction class in Java