added rational.java + driver