Class for fractions.