Implement Fractional and Num for Ratio