got unit tests passing for rational number representation