The plaintiff, a foreign corporation, brought suit to foreclose a certain real estate mortgage executed by the defendants, Boss Hoffman and his wife, Bell Hoffman, to secure to plaintiff four promissory notes dated November 1, 1893, for $700 each, payable November 1, 1897, with coupon notes for the annual interest on said respective notes attached thereto, said coupon notes being by their terms payable, each series, as follows, to wit: No. 1, payable January 1, 1893; No. 2, January 1, 1894; No. 3, January 1, 1895; No. 4, January 1, 1896; No. 5, January 1, 1897; and No. 6, November 1, 1897; and each of said coupon interest notes, by its terms, drawing interest from the maturity thereof. The defendants, Hoffman and wife, answered, raising only one question, the answer alleging as follows, to wit: “That at all times in the complaint mentioned the plaintiff was a corporation organized and created as such under the laws of the territory of Dakota, for the purpose of loaning money and other purposes; that at all said times said plaintiff was engaged in the occupation of loaning money at interest in the counties of Latah and Nez Perces, in the state of Idaho, and had a known, and its principal, place of business in Idaho at Moscow, in Latah county, *382Idaho; that the consideration of the principal note and mortgage described in the complaint was a loan of money at interest; that said loan was made by said plaintiff in said Latah county, Idaho, while engaged in the business of loaning money at interest in said county, as aforesaid; that the plaintiff never at any time procured any license to engage in the occupation of loaning money at interest, either in Latah or Nez Perces county, Idaho, and never paid for any license to engage in any such occupation in either of said counties. By reason whereof plaintiff, in making said loan, and taking said note and mortgage, was violating the laws of the state of Idaho, and the same are null and void.” To the said answer the plaintiff filed a general demurrer, which was. sustained, and said defendants declined to further plead, but elected to stand on their said answer, whereupon the court rendered a judgment and decree of foreclosure in favor of plaintiff for the sum of $3,491.18 and the ordinary costs of the action in the sum of $17.95. The plaintiff, in the complaint, alleged that the defendants had paid all of said coupon interest notes numbered Nos. 1 and 2, but had failed and refused to pay the other coupon interest notes, and had refused and failed to pay said principal notes. It will thus be seen that the defendants had paid in interest the sum of $364 on said indebtedness. The demurrer to said answer admitted the facts pleaded in the answer, and those facts are to be regarded by this court as established.
The first question that arises is this: Was the transaction void, or is the plaintiff precluded from recovering on said contract by reason of its failure to procure a license to do the business of loaning money? Section 1636 of the Revised Statutes, provides: “A license must be procured immediately before the commencement of any business or occupation liable to a license tax from tax collector of the county where the applicant desires to transact the same, which license authorizes the party obtaining the same in his town, city, or particular locality in the - county to transact the business described in such license.” Section 1644 of the Revised Statutes, requires “persons, associations, or corporations engaged in the occupation of banking, loaning money at interest,” etc., to pay a license tax, the amount of such tax varying according to the classification enumerated in said section. Section 6983 of the *383Revised Statutes, is in the following language, to wit: “Every person who commences or carries on any business, trade, or profession or calling for the transaction or carrying on of which a license is required by any law of this territory (state), without talcing out or procuring the license prescribed by such law, is guilty- of a misdemeanor.” The appellants contend that under the statutes, supra, the consideration for the notes and mortgage in question was illegal; that the respondent was prohibited from doing such business; that the contract of the parties was made in violation of law, and therefore void; that owing to the illegality of the consideration of said contract, the same having been made in violation of law, the court could grant no relief to the respondent. Counsel for appellants has spent much time in research, and has cited many authorities in support of his position. The general rule, as urged by appellants, that a contract founded on an act forbidden by a statute under a penalty is void, although it be not expressly declared to be so, is correct, and well established by authority. But in applying the rule many courts have excepted from its operation one class of eases, viz.', when the statutory prohibition is found in a statute enacted for the purpose of raising revenue or the regulation of traffic or business, when, unless it is manifestly the intention of the statute to make the contract void, the court will treat the contract as valid. Mr. Sutherland, in his admirable work on Statutory Construction, at section 366, in treating the question under consideration, very aptly says: “When a statute is for revenue purposes, or is a regxilation of a traffic or business, and not to prohibit it altogether, whether a contract which violates the statute shall be treated as wholly void will depend on the intention expressed in the particular statute. Unless the 'contrary intention is manifest, the contract will be valid.” And in support of the rule Mr. Sutherland, in a foot-note, cites many authorities among the following which support the text, as we have seen by a careful examination of the cases, to wit: Harris v. Runnels, 12 How. 79; Insurance Co. v. Bledsoe, 52 Ala. 538; Niemeyer v. Wright, 75 Va. 239, 40 Am. Rep. 720; Johnson v. Hudson, 11 East, 180; Brown v. Duncan, 10 Barn. & C. 93; Parton v. Hervey, 1 Gray, 119; Bly v. Bank, 79 Pa. St. 453; Pangborn v. Westlake, 36 Iowa, 546; Bemis v. Becker, 1 Kan. 226; Lindsey v. Ruther*384ford, 17 B. Mon. 245; Strong v. Darling, 9 Ohio, 201; Watraus v. Blair, 32 Iowa, 58; Foster v. Railway Co., 13 Com. B. 200; O'Hare v. Bank 77 Pa. St. 96; Vining v. Bricker, 14 Ohio St. 331. The following are other authorities supporting the rule laid down by Mr. Sutherland, cited above, which we have examined, to wit: Fackler v. Ford, 24 How. 322; Mandlebaum v. Gregorich, 17 Nev. 87, 45 Am. Rep. 433; 28 Pac. 121; La France Fire Engine Co. v. Town of Mt. Vernon, 9 Wash. 142, 43 Am. St. Rep. 827, 37 Pac. 287, 38 Pac. 80; Larned v. Andrews, 106 Mass. 435, 8 Am. Rep. 346; Bowditch v. Insurance Co., 141 Mass, 292, 55 Am. Rep. 474, 4 N. E. 798; Dearborn Foundry Co. v. Augustine, 5 Wash. 67, 31 Pac. 327; Edison General Electric Co. v. Canadian Pac. Nav. Co., 8 Wash. 370, 40 Am. St. Rep. 910, 36 Pac. 260; Pac. Trust Co. v. Dorsey, 72 Cal. 55, 12 Pac. 49; Pacific T. Co. v. Dorsey (Cal.), 13 Pac. 148; Bank v. Matthews, 98 U. S. 621; Mill Co. v. Bartlett, 3 N. Dak. 138, 54 N. W. 544; Wright v. Lee, 2 S. Dak. 596, 51 N. W. 706; Lumber Co. v. Thomas, 33 W. Va. 566, 25 Am. St. Rep. 925, 11 S. E. 37; Dillon v. Allen, 46 Iowa, 299, 26 Am. Rep. 145; Pennypacker v. Insurance Co., 80 Iowa, 56, 20 Am. St. Rep. 395, 45 N. W. 408; Ruckman v. Bergholz, 37 N. J. L. 437; Corning v. Abbott, 54 N. H. 469; Aiken v. Blaisdell, 41 Vt. 655; State Mut. Fire Ins. Assn. v. Brinkley Stave etc. Co., 61 Ark. 1, 54 Am. St. Rep. 191, 31 S. W. 157; Rahter v. Bank, 92 Pa. St. 393; Insurance Co. v. McMillen, 24 Ohio St. 67; De Mers v. Daniels, 39 Minn. 158, 39 N. W. 98; Walter A. Wood etc. Co. v. Caldwell, 54 Ind. 270, 23 Am. Rep. 641; United States v. Martin, 94 U. S. 400. In Lindsey v. Rutherford, supra, the court said: “The dealing in bills of exchange, in view of the statute, is neither malum in se nor malum prohibitum. Contracts for their sale and purchase are not prohibited by the statute. They are neither evil in themselves nor evil because forbidden by the statute. The statute strikes no blow at the business itself, but simply declares upon this subject that, ‘if any person shall carry on, conduct, or engage, directly or indirectly, in the business of a broker or exchange dealer, by the purchase of bills of exchange, etc., without a Ecense besides the tax imposed, he shall forfeit and pay to the commonwealth $1,000/ The business may be carried on. The business itself is not prohibited. It is lawful to deal in bills *385of exchange. But, if carried on without a license, the person doing so shall forfeit and pay to the commonwealth -$1,000. We conclude, therefore, that our statute in this regard is essentially a revenue measure, designed to raise revenue from a business esteemed by the legislature as very profitable, and authorizing the requisition of a tax from him who thinks proper to engage in the business.” In Pangborn v. Westlake, supra, the court said: “We are, therefore, brought to the true test, which is that while, as a general rule, a penalty implies a prohibition, yet the courts will always look to the language of the statute, the subject matter of it, the wrong or evil which it seeks to remedy or prevent, and the purpose sought to be accomplished in its enactment; and if from all these it is manifest that it was not intended to imply a prohibition, or to render the prohibited act void, the courts will so hold, and construe the statute accordingly.” A statute in California made eight hours a legal day’s work on public works, and required a stipulation to that effect to be incorporated in all contracts for public work. The supreme court of that state (Babcock v. Goodrich, 47 Cal. 488 — where such stipulation had been, in violation of the statute, omitted) held the contract valid, and, among other things, said: “It is not made a consequence of an omission to insert this stipulation that the contract shall be void, and the omission, therefore, does not operate a forfeiture of the rights of the parties under the contract. If a county shall contract directly with the laborer, it will not be contended that the former may refuse to pay the latter his hire because he had worked too many hours, or had not, by express stipulation, limited the time which should constitute a day’s work. The law was passed for the protection of the laborer. An officer of the county cannot refuse to carry out a contract because of an omission which renders the contract more favorable to the county.” And in United States v. Martin, supra, the supreme court of the United States said, in a case similar to the one in California: “We regard the statute chiefly as in the nature of a direction from a principal to his agent that eight hours is deemed to be á proper length of time for a day’s labor, and thát his contract shall be based upon that theory. It is a matter between the principal and his agent, in which a third *386party has no interest.We are of the opinion, therefore, that contracts fixing or giving a different length of time as the day’s work are legal, and binding on the parties making them.” In Larned v. Andrews, 106 Mass. 437, 8 Am. Rep. 346, the court said: “It is to be observed that the act does not expressly declare that sales by a wholesale dealer who neglects to pay the tax shall be illegal. The tax is not laid upon each sale, but upon the business or calling. The illegality does not attach to the sale, but consists in not paying the tax imposed upon the business.These and other considerations lead us to the conclusion that it was not the intention of Congress to prohibit and make unlawful each sale made by a wholesale dealer who neglects to pay his tax. The object of the tax was to provide internal revenue to support the government, and not to regulate domestic trade in the states. It imposes a tax upon wholesale dealers, and provides a penalty if they neglect to pay such tax. We think this was designed to operate upon the person, and not upon the business. If Congress had intended to subject the dealer neglecting to pay his tax to the additional liability of having all his sales rendered illegal, we think they would have so declared in unequivocal terms.” The same line of reasoning was adopted by Judge Hawley in Mandlebaum v. Gregovich, supra.
From a careful study of all of the authorities, we think that the better class of authorities and the better reasoning leads to the conclusion that, where the prohibition is implied from a penalty imposed, as in the case at bar, the prohibition being for the protection of the public revenue, and no declaration in the statute making the prohibited act void, the doing of such act is not illegal. There is nothing in our statutes which makes it unlawful to loan money at interest. There is nothing in our statutes which says that it is unlawful to follow the business of loaning money at interest. Such business is not malum in se, nor is it malum prohibitum. Anyone may conduct the business, but, under our statute, if he does so, he must obtain the license; and if he carries on such business without paying the license tax and obtaining the license, he is guilty of a misdemeanor. The offense consists, not in doing the business, for that is not prohibited, but in failing to pay the license tax. The statute was passed, not to protect the public, not to *387protect the borrower, nor to prevent the loaning of money at interest, but for the purpose of raising the revenue to be derived from the license taxes to be collected from those persons who should engage in the business of loaning money at interest. Section 6983 of our statutes, supra, was enacted to protect the public revenue, not for the purpose of making void any contract made in violation of it. Take the case at bar. The respondent loaned $3,800 'to the appellants. The respondent was doing the business of loaning money at interest, in violation of law, without the license. This was a fraud upon the-public revenue, but was no injury to the appellants. For such, failure the legislature has said to respondent: “You are guilty of a misdemeanor. The assessor and collector may direct suit; against you, and recover the license tax imposed by statute, together with twenty dollars damages.” But the legislature has not further said that “you shall not recover back any money which you may loan at interest before paying such license tax.” It is the duty of the court to construe all of our statutes which relate to the subject in question in pari materia, and ascertain what the intention of the legislature was as to the validity of the contract in question. A careful consideration of the said statutes, of the subject matter and object to be obtained, convinces us that it was not the intention of the legislature that a violation of section 6983, supra, should be attended with any penalty other than those prescribed by the statutes. If the act of loaning money at interest was injurious to morals or good society, or prohibited by law, we could not come to this conclusion. The legislature may, within the limits of the constitution, prescribe traffic regulations, and may impose upon a business a tax, and require persons intending to engage in such business to obtain, before doing so, a license; and we think the legislature might go one step further, and say that whoever should engage in any business upon which a license tax is imposed without first paying such license tax, should not only be fined and imprisoned, one or both, but that such person should not recover upon any contract made by him while engaged in such business without a license. But the legislature has not done so, nor has it shown any intention to attend such forfeiture upon a person violating the statute. Having specified the penalty for a violation of the statute, and further provided for *388the collection of the license tax with damages, we are authorized to and do conclude that the legislature did not intend that any further punishment should be inflicted. This conclusion is strengthened by the well-known principle that forfeitures are not favored in law; nor does this court favor the idea of giving one’s goods to another without compensation. We think that the respondent clearly has the right to recover back the money which it loaned to the appellants.
jBut another serious question arises in this case, which we will now consider. The interest coupon notes attached to each ©f the four principal notes, and numbered from 1 to 6 in the respective series, by their terms draw interest from their maturity. Section 1264-1266 of the Eevised Statutes of Idaho, are as follows:
“Sec. 1264. Parties may agree in writing for the payment of any rate of interest on money due or to become due on any contract, not to exceed the sum of one and one-half per cent per month; any judgment rendered on such contract bears interest at the rate of ten per cent per annum until satisfied.
“Sec. 1265. Compound interest is not allowed, but a debtor may agree in writing to pay interest upon interest overdue at the date of such agreement.
“Sec. 1266. If it ascertained in any suit brought on any contract that a rate of interest has been contracted for greater than is authorized by this chapter, either directly or indirectly, in money or in property, such contract works a forfeiture of ten cents on the hundred by the year, and at that rate upon the amount of such contract, to the school fund of the county in which the suit is brought and the plaintiff must have judgment for the principal sum less all payments of principal or interest theretofore made and without interest or cost. The court must render judgment in said action for ten per cent per annum upon the entire principal in said contract, against the defendant in favor of the state for the use of the school fund of the county, whether the unlawful interest is contested or not; and in no ease where unlawful interest is contracted for must the plaintiff have judgment for more than the principal sum less the payments already made, whether the unlawful interest be incorporated with the principal sum or not. But *389no indorsee in due course of negotiable paper, is affected by any usury exacted by any former holder of such paper unless he has actual notice of the usury previous to his purchase; but in no such case the judgment above provided in favor of the school fund must be entered against the drawer or maker, if' a party to the action, and he may recover back the usury paid from the party who received the same.”
Section 1265, supra, limits the right of the parties to contract under section 1264, supra, and forbids the agreeing to pay compound interest, except in one case only, to wit, when interest is past due, a party may, in writing, agree to pay interest on such overdue interest. The appellants contend that the judgment in this case, which gave to respondent the amount of the principal notes, the amount of the unpaid interest coupon notes, with interest on the latter, was erroneous, and that the respondent is not entitled to recover on said mortgage indebtedness anything more than the original principal less all payments heretofore made in principal or interest, and we agree with the appellant in this particular. We are aware that the supreme court of the United States, in Pana v. Bowler, 107 U. S. 529, 2 Sup. Ct. Rep. 704, and in other cases, has held that the interest coupons of municipal bonds draw interest after maturity according to the law of the place where such coupons are, by their terms, payable. In Wisconsin it was repeatedly held that where, by the terms of an instrument, interest became due at certain specified times, compound interest was allowable upon each installment of interest after the maturity of such installment. And in Texas it was bpld in Lewis v. Paschal, 37 Tex. 315, that compound interest was allowable. In the latter case the rule was justified on the ground that it was not prohibited by the statutes of Texas. We apprehend that it will not be questioned but that the legislature can regulate the matter of interest, and may prohibit altogether compound interest. It is no answer to the statute in the case at bar to say that the compound interest provided for in the coupon notes when added to the simple interest falls below the legal and contractual rates provided by our statutes. When no rate is agreed upon, our statutes fix the rate, and at the time the contract in question was made, the legal rate was ten *390per cent, and where the parties were not satisfied with this rate they could, by agreement in writing, fix any rate desired with these restrictions. They could not agree upon a rate higher than one and one-half per cent per month, or provide in advance for compound interest. The coupon notes in question were usurious, providing as they did for interest upon interest which was not overdue at the time they were made. It appears from the allegations of the complaint that the coupon notes Nos. 1 and 2 of each of the series, amounting in all, as we gather it from the complaint, to the sum of '$364, were paid by appellants before this action was commenced. The respondent cannot be entitled under the statutes, supra, to judgment for more than the principal sum loaned by it to the appellants, less said interest payments, and without interest or costs, and to this extent only its mortgage security is good. 'The interest being forfeited under the statutes, supra, and the principal debt not due by the terms of the contract, no interest being past due, and the principal not yet due, the query suggests itself, Was not this suit prematurely brought? And an affirmative answer also suggests itself. Probably the appellants waive such question if they fail to raise it. It is the duty of the trial courts to see that the provisions of section 1266, supra, are carried out, and to inflict the penalty therein provided, without suggestion so to do from any source. The judgment is reversed, and the cause remanded for further proceeding consistent with this opinion. Costs of appeal awarded to appellants. Eeversed and remanded.
Sullivan, C. J., and Huston, J., concur.