Defined init and initWithNumerator and initWithDenominator.