added rational class, for operations with rational numbers