Add overloads for operator double(), make modification in print_result() function so that now it understand if the denominator is 1 or the numerator is 0.
Add some tests in main section. Implement inv() method and now it is possible to invert rationals.