beginnings of rational number class