Adds rational class