Constructor of the Fraction class