A contract is an agreement between two or more parties for the doing or not doing of some specified thing.