Added a new constructor to the Rational class for whole numbers.