An undertaking, on sufficient consideration, in writing
   and under seal, to do or to refrain from some act or thing; a contract;
   a stipulation; also, the document or writing containing the terms of
   agreement.