All the previous code is wrong

Well, most if it. this actually displays everything properly. Although 'new Fraction(1,0).toString()' is still shown as '-1'