you haven't implemented the reduce method yet, once you have implemented the reduce method then you can use it in your add function like this:
r1=reduce(r1);
r2=reduce(r2);
return Rational(r1+r2);