Added all necessary methods in Fraction class.
tested the functionality of Fraction