A contract is a written agreement between two people.
The woman signed a contract when she bought the house.
Example picture