addded functionality to extend an object contract with another object contract.