An agreement between two or more persons which creates an obligation to do or not to do a particular thing.