Added virtual method getValue() to Rational