Add a Rational class