delivered the opinion of the court.
The state has appealed from an order sustaining a demurrer to an information and challenges the correctness of the trial court’s ruling.
The information charges a violation of section 3073.1, Revised Codes, which provides as follows: “A period of eight (8) hours shall constitute a day’s work and a period of not to exceed forty-eight (48) hours shall constitute a week’s work in all cities and towns having a population of twenty-five hundred (2500) or over, for all persons employed in retail stores, and in all leased businesses where the lessor dictates the price, also kind of merchandise that is sold, and the hours and conditions of operation of the business, all persons employed in delivering goods sold in such stores, all persons employed in wholesale warehouses used for supplying retail establishments with *197 goods, and all persons employed in delivering goods to retail establishments from such wholesale warehouses.”
The defendant was charged with having worked one of its employees for more than eight hours in one day in a retail store in a city having a population in excess of 2,500 persons. The demurrer was on the ground that the information did not state a public offense. The court’s ruling thereon presents the main assignment of error.
Defendant asserts that this court is without authority to con-sider the appeal because the state has failed to furnish a proper record, and that the time for preparing such a record has passed. The transcript consists of the information, demurrer, ruling on demurrer, notice of appeal, copy of minute entries and certificate of the clerk. In this respect we are confronted with practically the same record that was before the court in the case of
State
v.
Libby Yards Co.,
It is at once obvious from the record that all the papers enumerated by section 12074, supra, as constituting the judgment roll, are now before this court with the exception of *198 “charges given or refused, and the indorsements thereon.” The cause having reached only the demurrer stage, such papers necessarily would not be in existence. For the same reason bills of exceptions, as contemplated by section 12042, Revised Codes, were not settled.
Finally, section 12041, Revised Codes, provides that no exception need be taken to the court’s ruling on demurrer (sec. 12038, Id.), and, therefore, a bill of exceptions on that point would serve no purpose where the demurrer and ruling thereon are already included as part of the judgment roll.
We can understand the result reached in
State
v.
Libby Yards Co.,
supra, under section 9347, Revised Codes of 1907, as it then read, but cannot reconcile the decision with that section as it reads today (sec. 12045, Rev. Codes).
State
v.
Carmichael,
To say that this appeal can only be presented by a bill of exceptions would do violence to the plain meaning of section 12045, supra, which, construed with section 12074, would seem to contemplate such a bill only when same had of necessity been settled. The suggested procedure would be an idle act (sec. 8761, Rev. Codes), which, if required, would in effect add nothing to the record but the signature of the trial judge.
The important question for review is the constitutionality of section 3073.1, Revised Codes, under the Fourteenth Amendment to the United States Constitution, and section 27 of Article III of the Constitution of the state of Montana.
Section 3073.1 was enacted at the Extraordinary Session of the Legislature of 1933-34, as section 1 of Chapter 8, page 37. The enactment was in conformity with a specific recommendation of the Governor as contained in his proclamation convening the session.
At the regular legislative session of 1935, a proposed constitutional amendment was submitted to the qualified electors to be voted upon at the general election of 1936. The amend *199 ment related to section 4, Article XVIII of the Constitution of Montana, having to do with the general subject of labor (see Chapter 172, Laws of 1935, p. 352). The amendment was adopted by the people and reads as follows: “A period of eight hours shall constitute a day’s work in all industries, occupations, undertakings and employments, except farming and stock raising; provided, however, that the Legislative Assembly may by law reduce the number of hours constituting a day’s work whenever in its opinion a reduction will better promote the general welfare, but it shall have no authority to increase the number of hours constituting a day’s work beyond that herein provided.”
Thus the public policy of the state was expressed by the people in official manner. The amendment became a part of the Article dealing with labor. By virtue of section 5 of that Article the legislature is directed to provide for the enforcement of the provisions thereof by appropriate legislation.
The section did not attempt to set up methods of enforcement, or provide penalties for violation thereof. We are not here called upon to decide whether the provision is self-executing. The information was drawn under section 3073.1, supra, though the charged violation occurred after the adoption of the constitutional amendment. Counsel for both sides stated that in their view the amendment is without controlling effect upon the constitutional questions involved here. We concur in that view, but do ascribe to it some significance in the sense that it served to disclose the existence of a public purpose or policy of the state.
Defendant takes the position that the statute infringes the liberty of contract between employer and employee concerning working hours, and deprives it of property without due process of law, and that it is denied the equal protection of the laws by reason of an arbitrary discrimination in the guise of reasonable classification. In disposing of these contentions, we must do so in the light of the well-established rule that every possible presumption must be indulged in favor of the constitutionality of the Act.
(State ex rel. Sparling
v.
Hitsman,
We enter upon a discussion of the question aided by exhaustive briefs of counsel and amici curiae, as to the history of minimum wage and maximum hour decisions of the United States Supreme Court and of the various states.
The law ivas passed by the legislature in the exercise of the sovereign police powers inherent in state governments. For a discussion and illustration of such powers, see
Cunningham
v.
Northwestern Improvement Co.,
The law was passed, as observed above, at the extraordinary session of the legislature of 1933-34. The Governor in his proclamation recited that a nation-wide depression had created a serious emergency in the state, due to a wide-spread unemployment, and detailed many reasons necessitating a special session to meet the emergent conditions. (Twenty-third Legislative Assembly, Extraordinary Session 1933-34, p. 1.) One of the recommendations to the legislature was: “To enact a law limiting the hours of labor. ’ ’
While we do not know the exact reasons that dictated the law in its particular form and scope, it is clear that in pursuance of one of the express purposes of the special session, the manifest intent of the law was to make eight hours a regular day’s labor for employees in retail stores and certain kindred occupations in cities having a population of 2,500 or over.
*201
No one can say positively whether the Act was passed in an attempt to adjust unemployment by creating more jobs, to promote health, or whether it was simply for the general prosperity and welfare of the state as a whole. The object may well have been a combination of all such purposes. We are not called upon to say precisely what the object really was, so long as any of these purposes might reasonably have been accomplished by the Act. The problem was squarely met by the Supreme Court of the United States in
Bunting
v.
Oregon,
Defendant contends that there is no legitimate object in the law justifying the exercise of the police power, and it is particularly challenged as having no reasonable relation to the *202 health of those within the purview of the statute. There are no facts before us supporting the contention, and against it is the judgment of the legislature exercised at the time and the judgment of the people themselves later voiced in their approval of the constitutional amendment of 1936, declaring a general state policy in the matter of an eight-hour day in all occupations and fields of endeavor other than farming and stock raising.
By means of the amendment a general policy of the state was declared, and that, in the light of the economic conditions prevailing at the time the law was enacted, is a persuasive factor in the matter of the constitutionality of the Act. The United States Supreme Court, in
Nebbia
v.
New
York,
The same court further voiced its approval of the technique applied in the
Nebbia Case,
supra, in the more recent case of
West Coast Hotel Co.
v.
Parrish,
In view of these precedents we are unable to say that defend-ant has been deprived of either liberty to contract or property without due process of law. That liberty is necessarily subordinate to reasonable restraint and regulation by the state in the exercise of its sovereign prerogative — -police power. Chief Justice Hughes, in the
West Coast Hotel Case,
supra, very ably defined liberty as contemplated and safeguarded by the Fourteenth Amendment, as follows: “What is this freedom? The Constitution does not speak of freedom of contract. It speaks of liberty and prohibits the deprivation of liberty without due process of law. In prohibiting that deprivation, the Constitution does not recognize an absolute and uncontrollable liberty. Liberty in each of its phases has its history and connotation. But the liberty safeguarded is liberty in a social organization which requires the protection of law against the evils which menace the health, safety, morals, and welfare of the people. Liberty under the Constitution is thus necessarily subject to the restraints of due process, and regulation which is reasonable in relation to its subject and is adopted in the interests of the community is due process. This essential limitation of liberty in general governs freedom of contract in particular.
*204
More than twenty-five years ago we set forth the applicable principle in these words, after referring to the cases where the liberty guaranteed by the Fourteenth Amendment had been broadly described. ‘But it was recognized in the cases cited, as in many others, that freedom of contract is a qualified, and not an absolute, right. There is no absolute freedom to do as one wills or to contract as one chooses. The guaranty of liberty does not withdraw from legislative supervision that wide department of activity which consists of the making of contracts, or deny to government the power to provide restrictive safeguards. Liberty implies the absence of arbitrary restraint, not immunity from reasonable regulations and prohibitions imposed in the interests of the community.’
(Chicago, B. & Q. R. Co.
v.
McGuire,
Defendant also contends that it has been deprived of the equal protection of the laws. It is argued that the statute constitutes arbitrary discrimination rather than reasonable classification. It must be remembered that in the matter of classification, the legislature enjoys broad discretion and is not required to go as far as it might in enacting a law. The question of classification is primarily for the legislature. The presumption is that it acted on legitimate grounds of distinction, if any such grounds existed. (6 R. C. L., sec. 376, p. 364;
State
v.
Loomis,
supra;
Hilger
v.
Moore,
The constitutional safeguard against unjust discrimination in legislation of this type is well defined by the decisions everywhere, and that is, that the classification must be reasonable, not arbitrary, and must rest upon some ground of difference having a fair and substantial relation to the object of the legislation, so that all persons similarly circumstanced shall be treated alike.
(Mills
v.
State Board of Equalization,
It must be noted that there are no facts or record before this court throwing any authenticated light on the question. We have the statute, coupled with the judicial notice which we may take of the economic conditions prevailing at the time of its *205 enactment. These conditions still persisted in 1935 when the legislature submitted the general eight-hour day amendment to the people for approval, and they were still existent at the time the amendment was adopted.
What a court may think as to the wisdom or expediency of the legislation is beside the question and does not go to the constitutionality of the statute. We must assume that the legislature was in a position and had the power to pass upon the wisdom of the enactment, and in the absence of an affirmative showing that there was no valid reason behind .the classification, we are powerless to disturb it. As was said in the ease of Missouri,
R. & T. R. Co.
v. May,
Approaching the question in this manner, as we must, we cannot say that the classification was not justified. It must be presumed that the legislature had all of the particular and controlling facts before it when it made the classification of cities to be affected by the Act on the basis of population. (6 R. C. L., sec. 380, p. 388;
Radice
v.
New York,
We are not impressed with the contention that the statute is too indefinite to be enforceable. When section 3073.1 is read in connection with the two sections immediately following it, one of which provides the penalties for violation of the Act, and the other providing for certain exceptions, the meaning of the statute and intent of the legislature are too plain to admit of doubt.
For the foregoing reasons, our conclusion is that the statute is constitutional under the Fourteenth Amendment to the‘Constitution of the United States. The same principles and authorities likewise lead to the conclusion that the statute is not in conflict with section 27, Article III, of our state Constitution.
The order sustaining the demurrer is reversed and the cause remanded for further proceedings in the district court.
