The economics of contracts :theories and applications