put getNumerator() to numerator(), getDenominator() to denominator(), private variables numerator to num and denominator to denom