Market Functioning and Social Rules