public Frac add(Frac other) { long newDom = this.dominator * other.dominator; long newNum = this.numerator * other.dominator + other.numerator * this.dominator; Frac ret = new Frac(newNum, newDom); return(ret.reduce()); }