Class to handle fraction computations symbolically.