Rewrote Fraction class to be immutable.