Implemented the constructors in class Fraction.