moved Rational class to separate scal file