Rational class in first completed form, ran successfully on Linux Terminal