Class and xml for Contracts