A fraction class for java