The economics of social security for workers