Implemented Rational exercise.