add changes for working reduced fraction program