completed Rational class and created test class