Added reduced fraction functionality