What is "first" and "second"?

I don't know what code you already have in Fraction_JW.

Is there any method to get to the variables in the first two inputs in your class Fraction_JN?

...