engaged in mining or manufacturing from keeping stores for furnishing supplies, tools, clothing, provisions or groceries to their employees while so' engaged in mining or manufacturing, the law was held to be in conflict with the constitution. In the decision of the case it is among other things said (p. 180): “The privilege or liberty to-engage in or control the business of keeping and selling clothing, provisions, groceries, tools, etc., to employees, is one of profit,—of presumptive value; and thus, by the effect of these sections, what the employers in other industries may do for their pecuniary gain with impunity, and have the law to protect and enforce, the miner and manufacturer, under precisely the same circumstances and conditions, are prohibited from doing for their pecuniary gain. The same act, in substance and in principle, if done by the one is lawful, but if done by the other is not only unlawful, but a misdemeanor. * The privilege of contracting is both a liberty and a property right, and if A is denied the right to contract and acquire' property in a manner which he has hitherto enjoyed under the law, and which B, O and D are still allowed by the law to enjoy, it is clear that he is deprived of both liberty and property to the extent that he is thus denied the right to contract.”
In Ramsey v. People, 142 Ill. 380, the case last cited was-quoted with approval, and it was held that the act of 1881, which requires the owners and operators of coal mines, when the miner is paid on the basis of the amount of coal mined and delivered by him, to weigh the coal on pit cars before it is screened, and to pay on such weights, is-in violation of section 2 of article 2 of the State constitution, as depriving a class of persons of the liberty and property right of making contracts without due process, of law.
In Braceville Coal Co. v. People, 147 Ill. 66, the question of the validity of an act of the legislature arose which, required certain specified corporations to pay their em