Ole Stensby petitioned this court for a writ of habeas corpus in behalf of his minor son,' Alf Stensby. The material *366and undisputed facts, as stated in tbe petition for tbe writ, are as follows: *
“That said Alf Stensby, in whose behalf this petition (writ) is applied for, is a minor son of your petitioner herein; that said Alf Stensby is now restrained of his liberty and is kept and confined in the state training school at Mandan, in the county of Morton, state of North Dakota, by the above named defendant, W. F. McClelland, as the superintendent and man in charge of the said state training school.
“That according to the knowledge and belief of your petitioner herein, the cause or pretense of such confinement and restraint is as follows, to-wit: That on the 20th day of February, 1928, in the juvenile court in and for Eddy county, North Dakota, before the Hon. J. A. Coffey, judge of the fourth judicial district, in said state, the said Alf Stensby was by an order of said juvenile court declared and adjudged a delinquent child within the meaning of the juvenile law of this state, and was then committed as a delinquent child by said juvenile court to the state training school at Mandan, Morton county, North Dakota, for an indefinite period, under the care and guardianship of the above-named defendant, W. F. McClelland, as the superintendent of said state training school; and that said defendant, as such superintendent, is now keeping, detaining and restraining said Alf Stensby, as a delinquent child, in said state training school, under and by virtue of said order of commitment made and issued by said juvenile court, as aforesaid.
“That said Alf Stensby is now past the age of eighteen (18) years; that he was born on the 6th day of September, 1910, and was eighteen (18) years of age on the 6th day of September, 1928.”
It is the contention of the relator that the juvenile court has no power to commit a delinquent child longer than until such child has reached the age of eighteen years-. The respondent, on the other hand, contends that where a child under the age of eighteen is brought before a juvenile court, the court has power to commit such child until it has reached the age of tw'enty-one years. The case turns upon the correctness of these respective contentions.
The juvenile court was established in this state in 1911. Laws 1911, chap. 177. It is a matter of common knowledge that at this *367time, and far some time prior thereto, there had been prevalent in this country a strong public sentiment that special judicial institutions ought to be established to deal with cases of juvenile waywardness; that children ought not to be judged in ways and by means designed for their elders; that ordinarily the delinquent child should not be regarded or treated as a criminal, but as misdirected and misguided, and hence in need of and entitled to receive treatment, encouragement, assistance, maintenance, protection and educatibn. 'The juvenile law of this state was formulated on these principles.
Section 1 provides:
“All dependent, neglected and delinquent children under the age of eighteen years, shall, for the purpose of this act only, be considered wards of this state and their persons shall be subject to the care, guardianship and control of the court as hereinafter provided.”
Section 21 says:
“This act shall be liberally construed to the end that its purpose may be carried out, to wit: that the care, custody and discipline of the child shall approximate as nearly as may be that which should be given by its parents, . . . and in cases of delinquency, that as far as practicable any delinquent child shall be treated, not as a criminal, but as misdirected and misguided and needing aid, encouragement and assistance, and if such child cannot be properly cared for and corrected' in its own home, or with the assistance and help of the probation officers, then that it may be placed in some suitable institution where it may be helped and educated and equipped for industrial efficiency and useful citizenship.”
The words “delinquent child” are defined by § 2 of the act to include “any child who while under the age of eighteen years violates any law of the state.” The procedure prescribed by the act is civil' in its nature rather than criminal. The proceedings are instituted upon petition and the process issued thereon is a summons. Every section of the act relating to a proceeding affecting a dependent, neglect--ed or delinquent child provides that the child to be proceeded against or concerning whom any order is made “shall be under the age of eighteen years.” As regards delinquent children, the act provides that:
“If the court shall find any child under the age-of eighteen (18) to be a delinquent within the meaning of this act, the' court may allow *368such child to remain at its own. home subject to the friendly visitation of a juvenile officer, such child to report to the court or juvenile officer with such record of its conduct in its home or school as the court may require as often as may be required, and if the parent, parents, guardian or custodian consent thereto, or if the court shall further find either that the parent, parents, guardian or custodian are unfit or improper guardians or are unable or unwilling to care for, protect, educate or discipline such child and shall further find that the parent, parents, guardian or custodian are unfit or improper guardians or are unable or unwilling to care for, protect, educate or discipline such child and shall further find that it is for the interest of such child and of the people of this state that such child be taken from the custody of its parents, parent, custodian or guardian, the court may appoint some proper person or juvenile officer, guardian over the person of such child and permit it to remain at its home, or order such guardian to cause such child to be placed in a suitable family home, or cause it to be boarded Out in some suitable home, or the court may commit such child to any institution incorporated under the laws of this state to care for' delinquent children, or to any institution that has been or may be provided by the state, county, city, town or village suitable for the care of delinquent children, including a detention home or school, or to some association that will receive it, embracing in its object the care of neglected, dependent or delinquent children and which has been duly accredited as hereinafter provided. In every case where' such child is committed to an institution or association, the court shall appoint the president, secretary or superintendent of such institution or. association, guardian over the person of such child, and shall order such guardian to place such child in such institution or with such association, whereof he is such officer, and to hold such child, care for, train and educate it subject to the rules and laws that may be in force, from time to time governing such institution or association, .and to the supervision of and further orders of said juvenile court.”
It seems entirely clear that the juvenile court act furnishes no authority for .a juvenile court to entertain any proceedings or enter any order- against a person over the age of eighteen years. It also seems entirely clear that the legislature intended that where a person under the age ,of. eighteen'years violates-a law. he should .not (in the first *369instance) be proceeded against by criminal action bnt by proceedings had under the Juvenile Court Act.
Thus, § 15 of the act provides:
“If any child under the age of eighteen years is arrested with or without warrant, such child shall instead of being taken before a justice of the peace or police magistrate, be given into the care of a juvenile officer of said county, and the officer having the child in charge shall take the child before such juvenile court and in any case the county (district) court may proceed to hear and dispose of the case in the same manner as if the child had been brought before the court upon petition as herein provided. In any case, the court shall require notice to be given and investigation to be made as in other cases under this act, and may adjourn the hearing from time to time for that purpose.”
While the act thus requires that proceedings against a “delinquent child” be had first in the juvenile court, it does not require that final and exclusive jurisdiction over delinquent children be exercised by such court. It recognizes that in some cases the juvenile delinquent may in fact be a person who ought to be held responsible as an adult under the criminal laws of this state and proceeded against as such.
The act (§ 11) provides:
“The court may in its discretion in any case of a delinquent child permit such child to be proceeded against in accordance with the laws, that may be in force in this state governing the commission of crimes or violation of city, village, or town ordinances; in such case the petition filed under this act shall be dismissed.”
At the time of the enactment of the Juvenile Court Act there was in existence certain laws of this state relating to juvenile offenders. Some of these laws were abrogated by the provisions of the Juvenile Court Act; other provisions remained in full force and effect, except in so' far as they were modified or qualified in their operation by the Juvenile Court Act. State ex rel. Neville v. Overby, 54 N. D. 295, 305, 209 N. W. 552. One of the latter provisions was § 10,401, N. D. Rev. Codes 1905, which reads as follows:
“Whenever any person under the age of eighteen years shall, in any district court of this state, be found guilty of a crime or public offense other than murder, such court may, if in its judgment the accused is *370a proper subject therefor, instead of entering judgment against such person, direct by an order to be' entered in the minutes of the court, that such person be committed to the state reform school for the remainder of such person’s minority.”
When the thirteenth legislative assembly convened in January 1913 there were only two classes of cases in which a district judge was authorized to commit a person to the reform school: (1) In a case arising, and upon proceedings had, under the juvenile court act; and (2) in a case falling within the provisions of § 10,401, Codes 1905. With the law in this condition the thirteenth legislative assembly enacted two laws dealing with the commitment of persons to the reform school.
First. It amended § 10,401, supra (Laws 1913, chap. 242) to read as follows:
“Whenever any person under the age of twenty years shall in any district court or county court having increased jurisdiction of this state be found guilty of a crime or public offense, other than murder, such court may, if in its judgment the accused is a proper subject therefor, instead of entering judgment against such person, direct, by an order to be entered in the minutes of the court that such person be committed to the state reform school until such person attains the age of twenty-one (21) years.”
Second. It enacted chapter 241, Laws 1913, entitled “An Act Defining Minority as Regards Persons Sentenced to the State Reform School.” This law reads as follows:
“In all cases where under the laws of this state the judge of the district court is authorized to sentence a person to the state reform school during the minority of such person, the person sentenced shall, regardless of sex, be deemed a minor until the age of twenty-one years is reached.” Laws 1913, chap. 241.
Chapter 242 was introduced in the House of Representatives on February 14, 1913. II. J. p. 737. As introduced it applied only to district courts. The words “or county courts having increased jurisdiction” were added as an amendment upon the recommendation of the House Committee to whom the bill had been referred for consideration. 2 H. J. p. 1139. The bill was passed on February 27th by the unanimous vote of the members of the House of Representatives present and voting thereon. 2 H. J. p. Í354. On March ,7th, it was passed by the *371Senate as received from the House, there being thirty votes in favor of passage, one against passage; nineteen senators being absent or not voting. S. J. p. 1484.
Chapter 241, Laws of 1913, was introduced in the Senate February 15th and referred to the committee on state affairs. S. J. p. 470. It was recommended for passage and passed without change on February 28th, — receiving forty-six ayes, and one nay, with six senators absent or not voting. The bill was received in the House of Representatives on March 1st, and placed upon its first and second reading. 2 H. J. pp. 1433-1431. It was recommended for passage without change and was passed without a dissenting vote by the House of Representatives on March 6th. 2 H. J. p. 1777.
The question presents itself, what was the legislative purpose in enacting these two statutes? Were they both intended to apply only to cases where juvenile offenders have been found guilty in a criminal action? Was either of them intended to apply in cases where commitments are made under the Juvenile Court Act?
Chapter 242 purports to be an amendment of a then existing law. It was entitled “An Act Specifying Who Maj Be Sent to the State Reform School and Amending § 10,401 of the Revised Codes of North Dakota of 1905.” It made the following changes in the then existing law:
1. Hnder the then existing law only offenders under the age of eighteen years might be committed to the reform school; chapter 242 increased the age of such offenders to twenty years.
2. The existing law was applicable only to district courts; chapter 242 is applicable as well to county courts having increased jurisdiction.
3. The existing law authorized the district court to commit a juvenile offender to the state reform school only for the remainder of such person’s minority (which in the case of females would be until the person committed had reached the age of eighteen years); chapter 242 changed this so as to authorize commitment until the person committed, 1 regardless of sex, should attain the age of twenty-one years.
Chapter 241 does not purport to be an amendment of any existing statute; but does purport to establish a rule which will be applicable under, and to that extent affect the operation of, then existing laws. *372It specifically purports to be applicable “in all cases where, under the laws of this state, the judge of the district court is authorized to sentence a person to the state reform school during the minority of such person.” And it says that in such cases “the person sentenced shall,, regardless of sex, be deemed a minor until the age of twenty-one is-reached.” The statute applies only to cases in district courts, and does not purport to apply to cases in county courts having increased jurisdiction. At the time of the enactment of this statute a district judge was authorized, in cases arising under the Juvenile Court Act,, to sentence, that is to commit, a juvenile delinquent to the state reform school during the minority of such person as defined in that act.
It will be noted from the'history of these legislative enactments, that they were contemporaneous measures. They were not only enacted by the same legislative assembly but were pending therein and considered at the same time; and in one of the hpuses they were referred to and acted upon by the same legislative committee. It will also be noted that the House of Representatives had passed chapter 242 some days before chapter 241 was received by it from the Senate. If the only purpose sought to be accomplished by chapter 241 was to define minority as regards persons proceeded against by criminal action and to make the age of majority the same for both sexes as regards such actions, their obviously it was a wholly unnecessary piece of legislation because chapter 242, which the house of representatives had already passed, was clearly designed to and did accomplish this very purpose. In this connection it is somewhat significant that the legislative assembly amended chapter 242 during the course of its passage so as to make it applicable to county courts having increased jurisdiction. No-such amendment was made as regards chapter 241. Under the Juvenile Court Act the district courts, and they alone, are juvenile courts. Laws 1911, chap. 177, § 3. The judge of the district court, and he alone, may commit a person to the state reform school under the Juvenile Court Act. If it had been the legislative purpose that chapter 241 should apply only in cases where a juvenile offender had been convicted of crime in a criminal action the same reason would have existed for extending the application of this statute to county courts having-increased jurisdiction as existed for extending the provisions of chapter 242 to such courts.
*373It is said that the word “sentence” in chapter 24-1, supra, evidences an intention on the part of the legislature that the statute should apply only to cases in which an infant has been convicted of crime. We are unable to agree with this argument. It is true, in a technical legal sense, the word “sentence” as applied to a judgment means a judgment in a criminal action, — that is, it means the judgment of the law which the court is commanded to pronounce declaring to the accused the legal consequences of the guilt which he has confessed or of which he is convicted. 18 C. J. 1266. But, it is equally true that in common parlance, even among the legal profession and in the decisions of the courts the word “sentence” is frequently used as a synonym for commitment and applied as well in civil as in criminal cases. If the word “sentence” is construed as meaning a judgment pronounced by the court declaring to an accused in a criminal action the legal consequences of a determination of guilt, then chapter 241, Laws 1913 was and is wholly inoperative and the enactment thereof was an idle act; for at the time of its enactment a judge of the district court had no authority to “sentence,” that is, to pronounce judgment of imprisonment in the state reform school as a punishment for crime. At the time of the enactment of chapter 241, and during the entire history of the state prior thereto our laws had specifically provided that “whenever any person under the age of eighteen years shall ... be found guilty of-crime the court may, if in its judgment the accused is a proper subject therefor, instead of entering judgment against such person direct by an order to be entered in .the minutes of the court that such person be committed to the state reform school, etc.” Laws 1890, chap. 164, § 10; Kevised Codes 1905, § 10,401.
As already noted the legislative assembly which convened in January 1913 did not' abrogate the rule thus announced but extended it so as to apply to all persons ander the age of twenty years; and further extended it so as to apply- to county courts having increased jurisdiction as well as district courts and authorized the court to commit all persons (female as well as male) to the state reform school until the person so committed had reached the age of twenty-one years.
Chapters 241 and 242 both relate to commitments to the state reform school. It must, of course, be assumed that the legislative assembly intended to accomplish some purpose by chapter 241 different *374from that which it had sought to accomplish by chapter 242. Chapter 242 relates only to cases where a person under the age of twenty years has been convicted of crime and authorizes the court in such cases “instead of entering judgment” to commit such person to the state reform school until he or she shall have reached the age of twenty-one years. If chapter 241 does not apply to commitments made under. the juvenile court act, then it applies only to cases where there has been a conviction for crime, that is, it applies only to the class of cases covered by chapter 242, and the legislature accomplished no purpose whatsoever by enacting chapter 241. It is only natural that the legislature while dealing with the subject of commitment to the reform school, and after having made provision for commitment of person convicted of crime, also, should have considered commitments of persons other than those convicted of crime (that is, commitments under the Juvenile Court Act); and when chapter 241 is construed in light of the history of the enactment thereof, it seems clear that it was intended to apply to and include commitments made under the Juvenile Court Act, — in short, that it was intended to authorize a judge of the district court to make commitments to the state'reform school in all cases until the person committed had reached the age of twenty-one years.
As regards the construction to be placed upon chapter 241, supra, it is significant that when the act became effective it was uniformly construed by all persons charged with any duty thereunder, inchiding' all the district judges of the state, as applicable to cases arising under the Juvenile Court Act and as authorizing a district judge to commit a delinquent child to the state reform school until such child has reached the age of twenty-one years. The contemporary construction thus placed upon the act and subsequently adhered to-, with practical-unanimity, throughout the years is entitled to great weight. 2 Lewis’s Sutherland, Stat. Constr. 2d ed. §§ 472, et seq. It should not be assumed that the different officers charged with the duty of administering the law, including all the district judges of the state, have violated the law and made commitments without authority and that hundreds of persons have been detained in the state reform school (now known as the State Training School) without any authority of law whatsoever.
But it is said that the provision in section one of the Juvenile Court Act “that all dependent, neglected, and delinquent, children under the *375age of eighteen years shall for the purpose of this act only, be considered wards of the state and their persons shall be subject to the care, guardianship, and control of the court as hereinafter provided,” of necessity limits the guardianship provided in the act to children under the age of eighteen years and that, consequently the juvenile court is without power to appoint a guardian for any longer period than until the child has reached the age of eighteen years.
The guardianship provided by the Juvenile Court Act is not a general one. It is restricted to that of custody and control of the child. Section 24 of the act (Comp. Laws 1913, § 11,425) provides that nothing in the act “shall be construed to give to the guardian appointed under this act the guardianship of the estate of the child or to change the age of minority for any other purpose except the custody of the child.” While the law in force at the time the Juvenile Court Act was enacted made no specific provision that the superintendent of the reform school should be appointed guardian of an incorrigible child committed to the reform school the result was the same for he was given custody and control over the child and to that extent was to all practical purposes substituted for the natural or legal guardian of the child; and under such statutes any infant committed to the reform school, either as an incorrigible child or otherwise, was required to be committed until such child had reached the age of twenty-one years. See Rev. Codes 1905, §§ 10,401 — 10,405.
The laws of this state have always recognized that “the abuse of parental authority is the subject of judicial cognizance . . . and when the abuse is established the child may be freed from the dominion of the parent and the duty of support and education enforced.” Comp. Laws 1913, § 4,428. While the Juvenile Court Act makes no reference to the right of parents to have custody and control of their child, the act clearly recognizes that the parents “owe the first duty and have the primary right” to the custody and control of their child even though the child may be a delinquent one. Re Solberg, 52 N. D. 522-525, 528, 529, 203 N. W. 898. Before the state has any power to deprive parents of the custody and control of a child and place siieh custody and control in a guardian appointed under the Juvenile Court Act the court must find not only that the child is a delinquent within the meaning of the Juvenile Court Act but (unless the parents consent that the *376child be committed to an institution as a delinquent and the superintendent thereof appointed a guardian under the Juvenile Court Act) it must “further find either that the parent, parents, guardian or custodian are unfit or improper guardians or are unable or unwilling to care for, protect, educate or discipline such child and . . . that it is for the interests of such child and for the people of this state that such child be taken from the custody of its parents, parent, custodian or guardian.” Comp. Laws 1913, § 11,411; Re Solberg, 52 N. D. 522, 528, 203 N. W. 898. And “if such child cannot be properly cared for and corrected in its own home, or with the assistance and help of the probation officers, then it may be placed in some suitable institution where it may be helped and educated and equipped for industrial efficiency and useful citizenship.” Comp. Laws 1913, § 11,422.
The guardianship provided by the Juvenile Court Act is intended to facilitate and carry out the policy and purposes of the act; and where the parents, guardian or custodian have proven so derelict in their duties as to demonstrate their unfitness to have custody of and control over the child, there is imposed upon the state the duty of providing a proper guardian. It is only when the juvenile court finds that the parents are unfit to have custody and control that it has power to interfere with the custody and control of the parents. When such unfitness is established, there, of course, rests upon the juvenile court a corresponding duty to exercise the power vested in it: it then becomes incumbent upon the juvenile court to determine what provision it shall make for the custody of the child, and according to the plain letter of the statute the primary consideration which should guide in its determination is “the best interests of the child and the people of the state.” If the court deems that such interest mil be best subserved by so doing it “may commit such child either to the reform school or to any institution incorporated under the laws of this state to care for delinquent children or to any institution that has been provided by the state, county, town or village suitable for the care of delinquent children including a detention home or school or an association that will receive it embracing in its object the care of neglected, dependent or delinquent children and which has been duly accredited,” as provided in the Juvenile Court Act. Comp. Laws 1913, § 11,411.
While the reform school has not been considered a penal institution *377but rather an educational one, that is, an institution in which 'delinquent children may receive proper training, it is, nevertheless, an institution, and the only institution established by the state, for the purpose of furnishing training and education to delinquent children; and our laws contemplate that it is only the more serious cases of delinquency that shall be dealt with by commitment to this institution, for the legislature has provided that not only delinquents committed under the Juvenile Court Act but juvenile offenders who have been convicted of crime in the courts of the state may, when the trial judge deems the accused a proper subject therefor, be committed to the reform school, for care, training and education.
As has been noted no person could or can be committed to the state reform school (without the consent of the parents or guardian) unless-: the parents or guardian by reason of unfitness, or disregard of their duties have forfeited their correlative rights to the care and custody of the child; even in ease of delinquency on the part of the child and unfitness on the part of the parents, it is not contemplated that the child shall be committed to the state reform school unless the case is one where “the interests of the child and the people of the state” require it. Yet, if chapter 241, supra, is not applicable to cases arising under the Juvenile Court Act then if and when a boy under the age of eighteen years is committed to the state reform school because he is delinquent and because his parents are found to be unfit to discharge the duty incumbent upon them, then when such boy reaches the age of eighteen years the guardianship which the state has provided “for the interest of the child and of the people of the state” ceases and for the remaining period of his infancy, that is, until such boy reaches the age of twenty-one years he becomes subject to the custody and control of the very parents whose unfitness to have such custody and control had been judicially determined as a condition precedent to his commitment to the state training school in the first instance. As said, the guardianship provided by the Juvenile Court Act is a limited one. It is limited to the custody and control of the child, hence it necessarily follows that when the legislature authorized a judge of the district court to commit a child to the state training school until he or she has reached the age of twenty-one years that the right of custody and con*378trol, tbat is, the functions of the guardianship, will continue during the entire time of such commitment.
It is contended by the petitioner that the decision of this court in Re Blackey, 53 N. D. 852, 208 N. W. 238, is contrary to the rule which we now announce. There is some language in the decision in that case which may appear to be of somewhat contrary import; but what was said in that case had reference only to the Juvenile Court Act. It will be noted that the decision in that case makes no reference whatever to chapter 241, Laws 1913. The question of the effect of that statute upon proceedings had, and commitments made, under the Juvenile Court Act, was not raised by either of the parties and was not considered or even alluded to in the prevailing opinion in the case. It has been said by the highest court in the land that “the positive authority of a decision is co-extensive only with the facts on which it is made.” Ogden v. Saunders, 12 Wheat. 333, 6 L. ed. 647. The Blackey Case presented a wholly different state of facts. In that case it was sought to commit an alleged delinquent child over twenty years of age to the state reform school (now known as the state training school). It is true certain proceedings had been had in the juvenile court against such child while he was under the age of eighteen years; but no written record had been made and no written order of commitment had been entered in the case at all. Whatever order had been made was wholly oral and carried as it -were in the breast of the trial court. Reason and authority both declare that such proceedings and orders are precisely the same as though they had never been had or made. In short the Blackey Case stood precisely as though the court had sought to exercise jurisdiction under the Juvenile Court Act and commit a person over the age of twenty years to the state training school. The only question raised and argued by counsel for the petitioner in that case was that the alleged proceedings had, and order made, in the juvenile court while the child was under the age of eighteen years, and of which no written record had been made, constituted no foundation whatever for an alleged order of commitment made some four years later, and after the child had reached the age of twenty years or over. All the members of the court were agreed that this contention was well founded, and obviously it was decisive of the case. Inasmuch as there was no order of commitment, the question whether the court would have had *379tbe power to make such order was not involved, or necessary to a decision. Consequently anything said in the Blackey Case regarding the power of the district court to enter an order, in a proceeding had under die Juvenile Court Act, committing a person who is then under eighteen years of age to the state training school until such person has reached the age of twenty-one years, is not controlling as an authority here.
It follows from what has been said that where proceedings are had in the juvenile court against a person under the age of eighteen years the juvenile court has authority to commit such person to the state training school until such juvenile delinquent has reached the age of twenty-one years. Hence, Alf Stensby is not unlawfully restrained of his liberty, but is held under a valid order of commitment. The application for a writ of habeas corpus is denied.
Birdzell and Nuessle, JJ., concur.