In this action brought upon the relation of the attorney general,, it is sought to forfeit the license to transact business in Minnesota, heretofore issued to defendant, a foreign corporation. The action is based upon an alleged violation of chapter 269, Laws 1901, entitled “An act to prohibit unfair discrimination between different sections, communities or localities, unfair competition, and providing penalties therefor.” Section 1 of the act is:
“Any person, firm, company, association, or corporation, foreign or domestic, doing business in the state of Minnesota and engaged in the production, manufacture, or distribution of petroleum or any of its products that shall intentionally, or otherwise, for the purpose-of destroying the business of a competitor or creating a monopoly in any locality, discriminate between different sections, communities or cities of this state, by selling such commodity at a lower rate in. one section, community, or city than is charged for such commodity by said party in another section, community or city, after making due allowance for the difference, if any, in the test or quality and in the actual cost of transportation from the point of production, if a raw product, or from the point of manufacture, if a manufactured product, shall be deemed guilty of unfair discrimination, which is hereby prohibited and declared to be unlawful.”
The complaint, a demurrer to which was sustained, alleged the engaging by defendant in refining, marketing, and otherwise dealing-*93in petroleum and its products, of which kerosene oil was one. The general method adopted by defendant for carrying on its business, it is alleged, “* * * is by means of railroad carrying tanks, in which said products are transported from the factories and refineries to the various distributing places in the state, where the same are placed in storage tanks and are thereafter distributed to the consumers and purchasers by means of tank wagons. That for a long time such has been and now is the method of defendant, and for the purposes aforesaid said defendant maintains an extensive system of carrying tallies and has storage tanks and tank wagons in the various villages, towns, and cities of the state.” Then follow allegations of discrimination in the prices charged for kerosene in different localities, with intent to destroy the business of competitors and create a monopoly.
The demurrer alleged generally a failure to state a cause of action, and specially that the statute contravened provisions of the state and federal constitutions, as will be hereafter stated.
1. The statute makes it the duty of the secretary of state to revoke the permit of a foreign corporation violating the act, and to report the violations to the attorney general, whose duty it shall be to institute proceedings to oust the offender if, after the revocation, it shall continue business in the state. The defendant claims, therefore, the complaint fails to state a cause of action, in that it shows no revocation by the secretary of state, which it is insisted is a prerequisite' to the bringing of this action by the attorney general.
Although a state may, when its action does not amount to an interference with interstate commerce, exclude foreign corporations from its territory, when the laws of the state provide for their admission, and a corporation complies with those regulations and pays the required fee, it secures from the state a franchise to transact business therein. A wrongful act which, if committed by a domestic corporation would render it liable to a forfeiture of its corporate existence, will render a foreign corporation committing it liable to a forfeiture of its franchise to do business in the state whose laws it violated. The duties and powers of the attorney general are similar in each instance, and while the - procedure provided by *94chapter 269, Laws 1907, may be followed, it is not exclusive. .Thp constitution and laws of this state have vested in the attorney general original discretion which he may exercise in instituting proper judicial proceedings to secure the enforcement of law. State v. Robinson, 101 Minn. 277, 112 N. W. 269, 20 L. R. A. (N. S.) 1127.
2. It is argued that the act fails to conform to the requirements of section 27, article 4, of the constitution, in that, while the title refers to unfair discriminations generally, the act itself only prohibits-such practices in petroleum and its products. The subject of the act is discrimination, and, while the title is broad enough to have justified an act of much wider scope, it sufficiently complies with the requirements of the organic law. Megins v. City of Duluth, 97 Minn. 23, 106 N. W. 89; Watkins v. Bigelow, 93 Minn. 210, 100 N. W. 1104; State v. Porter, 53 Minn. 279, 55 N. W. 134; State v. Cassidy, 22 Minn. 312, 21 Am. Rep. 765.
3. The defendant holds its license subject to the condition th^t it will in the conduct of its business conform to the valid laws of the-state, whether enacted before or after the issuance of the license. State v. Creamery Package Mnfg. Co., 110 Minn. 415, 126 N. W. 126. As the allegations of the complaint show a wilful violation by defendant of the law referred to, the validity of that enactment is the principal question presented by this appeal. The demurrer was sustained upon the grounds “(1) that chapter 269, Laws 1907,. is repugnant to and in contravention of section 1 of the fourteenth amendment of the constitution of the United States; and (2) that, said chapter 269, Laws 1907, is repugnant to and in contravention of sections 33 and 34 of article 4 of the constitution of the state of Minnesota.”
We cannot better state the reasons advanced to support this holding than by quoting from the memorandum which the learned trial judge attached to his order. Amongst other things he said: “The vice in the law is that it singles out producers, manufacturers, and distributors of ‘petroleum or any o.f itá products,’ and makes it a crime for such producers, manufacturers, and distributors to, for the purpose of creating a monopoly, discriminate between different sections or cities by selling petroleum or any of its products at a different price *95in different sections or cities of the state, while producers, manufacturers, and distributors of all other commodities may still, for the purpose of creating a monopoly, discriminate between different sections or cities. It is worthy of note that the law applies to 'petroleum or any of its productsthat is, not only to crude petroleum, but to the refined oils, and to the hundreds of articles of common use that are products of petroleum, manufactured by different concerns, and distributed by every grocer and druggist in the state. * * * I fail to see any distinction or any reason, except a purely fanciful and illusory one, for such a classification as is made by this law. It therefore follows that the act is void, as special or class legislation.”
The enactment under consideration was made under the power and duty of the legislature to enact such laws as are required for the peace, safety, health, and prosperity of the people generally, and unless beyond doubt it violates a specific provision of the state or federal constitution the only power of the court is to interpret and enforce its provisions. Lommen v. Minneapolis Gaslight Co., 65 Minn. 196, 68 N. W. 53, 33 L. R. A. 431, 60 Am. St. 450.
Courts have no voice in determining the advisability or utility of a statute; but, when it is claimed that a duly enacted law is repugnant to those constitutional provisions adopted for the beneficent purpose of preserving equality and equal privileges, it is unavoidable that the purpose and effect of the law and the necessity for its existence be taken into consideration. Municipal law is a progressive science adapting itself to conditions as they arise. The constitution was not intended to restrain a proper advance in statutory law. The strength of the federal constitution lies largely in its flexibility, and a vast array of business activities are now recognized as under its protection, the possibility of which was unknown when the constitution was adopted; and it is also true that much governmental power which has been dormant may be exercised without violence to its provisions.. Conceding, in order to justify the classification of a given article of commerce, that it must possess, in itself, or in the manner in which it is put upon the market, some peculiarities not generally found, it is still the duty of the courts to enforce the statute, if investigation shows that such peculiarities may exist. If any *96such distinction exists, the judgment of the lawmaking department of the state as to the necessity for special regulations is final.
There is very little, if any, conflict of authority as to the propriety of legislation providing special restrictions in selling and distributing a particular article of trade or class of articles, if such articles in themselves, the manner of their distribution, or in the particular circumstances surrounding them, may in a certain sense be deemed to be segregated from the general mass and possess some characteristics not generally found, and it cannot be doubted that as population increases, and new and improved methods of production and distribution are applied, legislation of that character must appear with greater frequency for the protection of the general public against the inclination of the individual to transact his affairs as in his judgment is best calculated to further his own interests, irrespective of the effect his conduct may have upon the public welfare. General laws to meet each condition as it arises would be necessarily so broad as to be open to many objections, and would often result in great hardship to individuals who were entirely innocent of any harmful act.
In considering the application of former decisions upon this question, it must be borne in mind that the statute here involved is effective only as to those who “shall intentionally or otherwise, for the purpose of destroying the business of a competitor or creating a monopoly in any locality, discriminate,” etc. The words “intentionally or otherwise” do not qualify the purpose, so that the statute only prohibits the discrimination when made with the deliberate purpose of destroying competition. Those cases, therefore, which hold that the legislature may in its discretion, for the purpose of preventing fraud or protecting the public health, provide special regulations for the sale or distribution of particular articles, are directly in point, for preserving freedom of markets is as important as the prevention of fraud. During all time the mighty have exacted from society much more than the dishonest have purloined. State v. Duluth Board of Trade, 107 Minn. 506, 121 N. W. 395, 23 L. R. A. (N. S.) 1260.
In State v. Wagener, 77 Minn. 483, 497, 80 N. W. 633, 636, 46 *97L. R. A. 77, 77 Am. St. 681, a statute regulating the sale of agricultural products upon commission was sustained. Every objection which can be made against the enactment now before us could with equal force be advanced against the one there considered. Answering the claim that the law was obnoxious as class legislation, it was said: “The class is as broad as it need be. The peculiar characteristics of the agricultural products and farm produce already referred to, and the liability to peculiar abuses resulting from a sale thereof on commission, are such as to suggest the practical necessity for distinctive legislation on the subject, different from what would be expedient or necessary in the case of other property sold on commission, and to justify the legislature, in its discretion, in putting these who sell such articles on commission in a class by themselves.”
This court twice determined the validity of statutes regulating the sale of balling powder. In the second instance (State v. Sherod, 80 Minn. 446, 450, 83 N. W. 417, 418, 50 L. R. A. 660, 81 Am. St. 268) it was said:- “Appellants base their’claim that the statute is class legislation upon the ground that it distinguishes baking powders from other well-known food products, such as butter, sugar, and flour. While there is a clear distinction between baking powders, which consist' of compounds or mixtures, and the articles mentioned, which are simply primary food products, we are not prepared to say that such a statute might not be extended to include such articles, if, in the opinion of the legislature, the adulteration of those products would make it advisable. That question is not before us. But that baking powders may be treated as a class, without being subject to the objection of being class legislation, has been decided in Stolz v. Thompson, 44 Minn. 271, 46 N. W. 410.”
Those cases have been selected from a long line of decisions of this court to the same effect, one of the earliest of which was Butler v. Chambers, 36 Minn. 69, 30 N. W. 308, 1 Am. St. 638, in which special regulations governing the sale of dairy products were upheld. In State v. Horgan, 55 Minn. 183, 56 N. W. 688, an act relating to imitations of butter was held valid. Stolz v. Thompson, supra; State v. Corbett, 57 Minn. 345, 59 N. W. 317, 24 L. R. A. 498; Cameron v. Chicago, M. & St. P. Ry. Co., 63 Minn. 384, 65 N. W. *98652, 31 L. R. A. 553; State v. McMahon, 65 Minn. 453, 68 N. W. 77; Stewart v. Great Northern Ry. Co., 65 Minn. 515, 68 N. W. 208, 33 L. R. A. 427; State v. Smith, 58 Minn. 35, 59 N. W. 545, 25 L. R. A. 759; State v. Chapel, 64 Minn. 130, 66 N. W. 205, 32 L. R. A. 131, 58 Am. St. 524; State v. Aslesen, 50 Minn. 5, 52 N. W. 220, 36 Am. St. 620; State v. Crescent Creamery Co., 83 Minn. 284, 86 N. W. 107, 54 L. R. A. 466, 85 Am. St. 464; State v. Zeno, 79 Minn. 80, 81 N. W. 748, 48 L. R. A. 88, 79 Am. St. 422; Zenith Bldg. & Loan Assn. v. Heimbach, 77 Minn. 97, 79 N. W. 609; State v. Justus, 85 Minn. 279, 88 N. W. 759, 56 L. R. A. 757, 89 Am. St. 550; State v. State Medical Examining Board, 32 Minn. 324, 20 N. W. 238, 50 Am. St. 575; Minnesota State Pharm. Assn. v. State Board of Pharmacy, 103 Minn. 21, 114 N. W. 245; State v. Crombie, 107 Minn. 166, 119 N. W. 658; State v. Hammond Packing Co., 105 Minn. 359, 117 N. W. 606; Phelan v. Terry, 101 Minn. 454, 457, 112 N. W. 872.
As we read them, the decisions of the federal supreme court, fully sustain the foregoing Minnesota cases; indeed, Butler v. Chambers and State v. Horgan were cited with apparent approval in Plumley v. Massachusetts, 155 U. S. 461, 15 Sup. Ct. 154, 39 L. Ed. 223, although the contention there seems to be that a Massachusetts statute “to prevent deception in the manufacture and sale of imitation butter” violated the commerce clause of the federal constitution. In Otis v. Parker, 187 U. S. 606, 23 Sup. Ct. 168, 47 L. Ed. 323, it was held that a statute of California, providing “All contracts for the sales of shares of the capital stock of any corporation or association, on margin, or to be delivered at a future day, shall be void,” was not invalid, because it struck “at only some, not all, of the objects of possible speculation.” To the same effect are Heath & Milligan Mnfg. Co. v. Worst, 207 U. S. 338, 28 Sup. Ct. 114, 52 L. Ed. 236, upholding a statute of North Dakota regulating the sale of mixed paints, and Ozan Lumber Co. v. Union County Nat. Bank, 207 U. S. 251, 28 Sup. Ct. 89, 52 L. Ed. 195, sustaining an Arkansas statute regulating the transfer of patent rights.
The law under consideration must be regarded as one supplementary to and in aid of the statutes designed to preserve competition *99generally, and if, as to this particular class of commodities, special regulations are necessary to restrain a monopoly in them, those dealing in such commodities are not denied equal privileges, but,.upon the contrary, are by such special regulation placed upon an equality with dealers in other articles of commerce. State v. Chapel, supra; State v. Crescent Creamery Co., supra.
In determining the validity of the statute, we have to consider whether petroleum and its products possess, in themselves, or in the manner in which they may be placed upon the market as articles of commerce, any peculiar characteristics which furnish a legitimate reason for singling them out for the purpose of regulation, to the exclusion of other articles used for similar purposes. In determining this question we judicially note all facts of common knowledge presumably considered by the legislature when the law was enacted, and inquire whether there existed, at the time of and before the act was passed, practices in this class which were inimical to the public welfare and properly the subject of remedial legislation. We have no difficulty upon this question. Petroleum is taken from the earth in a manner peculiar to itself. The refined oil is handled as no other product. Its production and distribution have caused more legislative investigations, and been the subject of greater legal combats, in recent years, than any other article of commerce. We think it is more unique, and justifies special regulation much more, than many of the other articles as to which legislation was sustained in the cases above cited.
The public policy, not only of Minnesota, but of all the states and the federal government, is to restrain monopolies and to encourage competition. Everywhere are found laws prohibiting pools and combinations in restraint of trade. Here we have one of the principal products of petroleum, kerosene, which, it is claimed in the complaint, can be so handled by a powerful corporation that competition can be stifled without resort to either pool or combination. The complaint charges defendant discriminates in its prices for the purpose of destroying the business of its competitors, and has and does prevent legitimate competition. We are advised of no other product or article of commerce, except other petroleum oils, as to which such a practice *100prevails. The demurrer admits these allegations. All these conditions were before the legislature and furnished the motive for the legislation. The classification was neither fanciful nor arbitrary, but proper and necessary to meet the peculiar conditions surrounding the distribution of these primary products of petroleum. Willis v. Standard Oil Co., 50 Minn. 290, 52 N. W. 652; Otis v. Parker, supra.
4. There is great force in the claim of counsel for the state that by petroleum and any of its products “the legislature had in mind kerosene oil, gasolene, and such oils as are distributed for commercial purposes by the tank car, storage tank, and tank wagon system,” and the many by-products which are entirely disassociated in the public mind with petroleum were not intended to bo included. But, if this limited intent cannot be inferred, and the act be held to include all, even the by-products of petroleum, we do not think that because of the absence of restrictions as to articles of commerce not produced from petroleum, but sold in competition with its by-products, the law is therefore unconstitutional. If the primary substance is a proper subject for classification, how can we say at just what point distinctions between its products and other commodities shall cease. No such refinement of detail is or can be required in a legislative enactment. Thus, in Heath & Milligan Mnfg. Co. v. Worst, supra, it was said (page 354 of 207 U. S., page 119 of 28 Sup. Ct. [52 L. Ed. 236]): “We have declared many times, and illustrated the declaration, that classification must have relation to the purpose of the legislature. But logical appropriateness of the inclusion or exclusion of objects or persons is not required. A classification may not be merely arbitrary, but necessarily there must be great freedom of discretion, even though it result in fill-advised, unequal, and oppressive legislation,’ ”—citing County of Mobile v. Kimball, 102 U. S. 691, 26 L. Ed. 238.
5. The complaint charges the defendant with having violated the law by unlawful discriminations in the prices charged by it for kerosene oil. Enough has been said to show that beyond all' question a statute dealing only with petroleum oils would be valid. If the act embraces every by-product, and it is conceded that such by*101products are not properly subject to classification as in this act, there is presented the question:
Is a statute which would be valid if confined to one commodity inoperative when sought to be enforced only as to that one because there are included in the act other commodities as to which it is invalid? In considering this we must disregard the fact that defendant may deal in the by-products, and consider what its • rights are with reference to kerosene, its conduct as to which is alone complained of. "'íhy'uich view we doubt the right of defendant to plead any improper inclusion in the statute of other articles, when none of such articles form the basis of the complaint. One who is deprived of no privilege will not be heard to question the validity of a statute upon the ground that it destroys the privileges of others. 8 Cyc. 791; Strauder v. West Virginia, 100 U. S. 303, 25 L. Ed. 664; State v. Currens, 111 Wis. 431, 87 N. W. 561, 56 L. R. A. 252; Brown v. Ohio Valley Ry. Co. (C. C.) 79 Fed. 176; Pittsburgh v. Montgomery, 152 Ind. 1, 49 N. E. 582, 69 L. R. A. 875, 71 Am. St. 301.
6. Statutes of this character, while enacted under the general police power, are in their nature social regulations, which may be enforced so far as the regulation attempted is not repugnant to the fundamental law, but may not be enforced beyond that point.-. Thus the validity of a statute establishing maximum tariffs for common carriers may depend upon the question of fact whether the enforcement of the rate will result in confiscation. Such a law has been suspended to await a period of increased earnings with the suggestion that it might then be enforced without further legislative action. Smyth v. Ames, 169 U. S. 466, 18 Sup. Ct. 418, 42 L. Ed. 819. This court has held that the statute abolishing the rule as to fellow servants of railroads, although general in its terms is only valid as to those railroad employees who are subject to the special hazards of railroads. Lavallee v. St. Paul, M. & M. Ry. Co., 40 Minn. 249, 41 N. W. 974. It is also held that a city ordinance regulating the speed of trains, by its terms applicable to every portion of the city, will be held valid as applied to the populous portions and unreasonable as to the sparsely settled districts. Evison v. Chicago, St. P., *102M. & O. Ry. Co., 45 Minn. 370, 371, 48 N. W. 6, 11 L. R. A. 434. That a statute may in its entirety be in contravention of the constitution, and still contain valid and enforceable provisions, is well settled. Ex parte Young, 209 U. S. 123, 28 Sup. Ct. 441, 13 L. R. A. (N. S.) 932; Willcox v. Consolidated Gas Co., 212 U. S. 19, 29 Sup. Ct. 192, 53 L. Ed. 382; Lee v. Tucker, 130 Ga. 43, 60 S. E. 164; Harlin v. Schafer, 169 Ind. 1, 81 N. E. 721; District of Columbia v. Green, 29 App. Cas. (D. C.) 296. The result is that the statute may be enforced as to the commodities included within its terms which are properly subject to special classification. Of those kerosene oil is one, and the only one in which the complaint charges discrimination.
7. We agree with the learned trial judge that the claimed repugnancy of the statute to sections 33 and 34, article 4, of the constitution of Minnesota, and to section 1 of the fourteenth amendment to the constitution of the United States, must be tested by the same considerations, and so have not spoken of each separately. Everything we have said also applies to the defendant’s contention that the enforcement of the statute would not constitute, due process of law.
Our conclusion is that the statute as here invoked and sought to be enforced is valid, and the order sustaining the demurrer is reversed.