changed printRational to toString like it's supposed to be