Created ContractProvider class.