implemented a simple rational class , needs refactoring