delivered the opinion of the court.
This writ оf error is directed to review a judgment of the Supreme Court of the State of Illinois, affirming a judgment in an action brought by Gertrude V. Claffy, against plaintiff in error for the violation of § 7, of a statute of the State entitled “An act providing for the protection and safety of persons in and about the construction, repairing, alteration or removal of buildings, bridges, viaducts and other structures, and to providé for the enforcement thereof.” Laws of 1907, p. 312.
Section 7 reads as follows:
“If elеvating machines or hoisting apparatus are used within a building in the course of construction for the purpose of lifting materials to be used in such construe-, tion, the contractors or owners shall cause the shafts or openings in each floor to be inclosed or fenced in on all sides by a substаntial barrier or railing at least eight feet in height. . . .”
Section 9 gives a right of action for a wilful violation of or failure to comply with any provisions of thе act to the person injured or, in case, of loss of life, to his widow, lineal heirs, adopted children or persons dependent upon him, for damаges so sustained.
Gertrude V. Claffy, widow of Charles F. Claffy, brought suit against plaintiff in error and one Henry Erickson for causing the death of her husband through violation of the act. The defendants filed separate demurrers to the *685 declaration, which were overruled. An additional count was filed by the plaintiff in the action which sét out with detail the cause of action. The defendants answered and, upon a trial to a jury, a verdict of $10,000 was returned against defendants. A new trial was granted as to Erickson, and $2500 of the amount found remitted and a judgment entered against plaintiff in error- here for the sum of $7500. It was sustained by the Supreme Court of the' State.' Subsequently, Gertrude V. Claffy having died, her administratrix, defendant in error here, was substituted as appellee in the Supreme Court.
The facts аre these: Plaintiff in error was the owner of a large building in the course of construction'in Chicago, and Erickson was the contractor for its ereсtion. The deceased was employed by the plumbing contractor, arid, in the course of his employment, was working in the building.
In the building there was an elevаtor or hoist, operated through a shaft or opening, for the purpose of lifting materials to be used' in the construction of the building. It was not inclosed or fenced in as required by § 7 of the act. Deceased was at work upon a .pipe immediately alongside of the shaft and accidentally fell into and down through it a distance of six stories.
The contention of plaintiff in error is here, as it was in the state courts, that §§ 7 and 9 of the act violatе the Fourteenth Amendment to the Constitution of the United States in that they deny to him the equal protection of the laws. He specifies as grounds of his cоntention that the classification of the statute is based upon minute rather than general distinctions, that it does not bring within its purview all of those who are in substantially the same situation and circumstances in that it distinguishes between openings required for hoisting or lowering materials to be used in construction and stairwаys and elevator shafts. Section 7, counsel says, “requires that but one of these classes be barricaded, namely, those openings used' *686 for hoisting materials to be used in construction.” And, asserting the purpose of the act to be to protect those lawfully on the premises against danger frоm falling materials, he adds, “that in a case like this use cannot be made the test. Danger is the thing,” and hence concludes that the classification of the statute, not having relation to its purpose, is arbitrary.
That danger is the test may be conceded, but there may be degrees of it, and a difference in degree may justify classification.
Mutual Loan Co.
v.
Martel,
*687
The law may not be the best that can be drawn nor accurately adaptеd to all of the conditions to which it was addressed. It may be that it would have been more complete if it had gone farther and recognized and provided against the danger that all uninclosed openings in a building might cause, and should not have distinguished between hoists inside of a building and those outside; but we do nоt see how plaintiff in error is concerned with the omissions. It is not discriminated against. All in its situation are treated alike. What the statute enjoins it enjoins not оnly of plaintiff in error but of all similarly situated. What it does not enjoin plaintiff in error cannot complain of. “The Constitution does not require that all statе laws shall be perfect, nor that the entire field of proper legislation shall be covered by a single enactment.”
Rosenthal
v.
New York,
Counsel attacks other sections of the statute “to show,” as he says, that “the whole scheme of the statute is based upon those minute distinctions’ condemned in the
Mondou
and
Ellis Cases
(
Judgment affirmed.
