The Rational class, plus some unit tests with ScalaTest.