Fixed storing values in the r array and added a constructor to fraction
class that made a fraction from a string.