An agreement by which a person undertakes to do or not to do a certain thing.