add override method of Fraction class