added add function

tested if denom’s were same, if not multiplied so they could be added.