Rational.java

my github skills are very subpar. I was unaware that nothing was submitted last night so I've copy and pasted the code here.