heritage de repository class.