fractions class