An agreement to do or not to do a certain thing. It must have four essential elements – parties capable of contracting, consent of the parties, a lawful object, and consideration. A contract for sale of real property must also be in writing and signed by the party or parties to be charged with performance.