prog 6.2
Fraction having convertToNum method