How do I link a subcontract to a main contract?