working version of Fraction class