gcd function def gcd(mn)while ! old_m old_n old_n old_m old_n return fraction class implementsaddition and equality to domultiplicationdivisionsubtraction and comparison operators (class fractiondef __init__(selftopbottom)self num top self den bottom def __str__(self)return str(self num"/str(self dendef show(self)print(self num"/"self dendef __add__(selfother_fraction)new_num self num other_fraction den self den other_fraction num new_den self den other_fraction den common gcd(new_numnew_denreturn fraction(new_num /commonnew_den /commondef __eq__(selfother)first_num self num other den second_num other num self den return first_num =second_num fraction( fraction( print( yprint( =yself check to make sure you understand how operators are implemented in python classesand how to properly write methodswrite some methods to implement */and also implement comparison operators and review of basic python