How to write an agreement.