delivered the opinion of the court.
Immediately east, south and west of its passenger station in Butte are the yards owned and operated by the Northern Pacific Railway Company. Through these yards, running from east to west, are the main-line tracks and some twenty or more tracks parallel thereto, with the necessary connecting switches. These tracks are in constant use in moving trains through the yards, in storing cars, in making up and breaking up trains, in mov*70ing ears to and from warehouses and to and from loading •and unloading spurs. Several city streets, including California Avenue, extend from the north to, and terminate at, the north line of the yards. Some distance south of the yards there is a considerable number of houses occupied by people not connected with the business of the railway company. These houses are within the city limits and occupy regularly laid out lots and blocks, the blocks being separated by streets, running north and south, which bear the same names as the streets north of the yards. On Harrison Avenue, at the east end of the yards, there is a public street crossing, and at the west end, on Kaw Avenue, there is another. Between these two streets, a distance of approximately 200 rods, there is no public highway, street or other thoroughfare across these yards.
On the afternoon of April 19, 1916, about thirty freight ears, all coupled together, were standing on track 11 in the yards. The two cars farthermost to the west were immediately west of the west line of California Avenue extended to the south, the east end of the string of cars being about 1,100 feet farther east. In the course of business it became necessary for the railway employees to remove the twelfth car from the east end of the string of cars, and to effect this purpose a locomotive backed on to the east end of track 11 and against the easternmost car of the string with sufficient force to cause the coupling to be made automatically, and this force drove all the cars to the west three or four feet. Just at the instant of the impact, Chester Jonosky, a minor, was crawling under the coupling between the second car and third car from the west end of the string of cars. The car-wheel of the third car passed over his left leg and injured his right leg. As the result of these injuries, the boy died a few hours later, and this action by the administrator of his estate was brought to recover damages.
It is alleged that for more than a year prior to the accident, children as well as adults were permitted by the railway company to cross and recross ihe tracks, particularly at a point where California Avenue on the north, if extended, would eon*71nect with California Avenue south of the yards; that the custom of the people was known to the railway company and acquiesced in without objection, and by reason thereof, the duty was imposed upon the company to exercise reasonable care to keep a lookout for children who might be crossing the yards, and to give appropriate warning of its intended movements of ears; that it failed in both respects, and that the death of the boy was caused proximately by the failure of the railway company to discharge this duty. The answer is substantially a general denial.
Witnesses in behalf of the plaintiff testified that for a considerable period prior to the injury the people living south of the tracks had habitually traveled back and forth across the yards as a short-cut to, or convenient means of reaching, points north of the yards and to avoid the longer route by way of the public crossings; that this custom was known to the railway company and suffered to prevail without objection, so far as the witnesses knew, and one witness, a school girl, testified that on two or three occasions employees of the company had assisted her in getting between coupled ears standing in the yards.
There is not a suggestion in the evidence that a walk had been constructed across the tracks; that the travel had followed any well-defined route over the tracks; that the yards could be used by these people without materially interfering with their proper use by the company, or that the company had in any manner held out to these people or induced them to believe that the yards could be crossed in safety, or that it was intended to permit the use of any portion of the yards, or the yards in their entirety, as a public crossing, but, on the contrary, the employees of the company working in the yards testified in effect that every reasonable effort had been expended to prevent the use of the yards by these people and particularly by children; that appeals had been made to the police department and to the school authorities to assist in keeping children out of the yards, and in this they were corroborated by the chief of police and the truant officer.
*72Upon the trial, and over defendant’s objection, the court instructed the jury that, as to licensees, the railway company owed the duty to exercise reasonable care in the management and running of its trains to protect them from injury and refused defendant’s offered instruction to the effect that, as to licensees, the company was under no duty to keep a lookout or give warning of the intended movement of cars in the yards. The trial resulted in a verdict for the plaintiff, and from the judgment entered thereon, this appeal is prosecuted.
Counsel for appellant contend that the boy was a trespasser, or, at best, a licensee. Counsel for respondent' insist that he was a licensee, and for the purpose of this appeal he will be treated as such. The two instructions above, then, fairly present the conflicting views of the respective parties upon the law governing this case.
The action is grounded in the alleged primary negligence of the railway company, and does not involve any element of the last clear chance doctrine, or the doctrine of attractive nuisances.
Actionable negligence arises only from a breach of legal duty [1] (Fusselman v. Yellowstone Valley L. & I. Co., 53 Mont. 254, Ann. Cas. 1918B, 420, 163 Pac. 473), and therefore, to determine the correctness of the theory upon which this case was submitted, it is necessary to determine just what legal duty the company owed to Chester Jonosky at the time he was injured. If it owed him the primary duty to keep a lookout and give warning of the intended movement of cars in the yards, then this judgment should be affirmed; if it did not, plaintiff has no cause of action.
Decided cases almost without number may be found which assume to define the legal relationship existing between a railway company and a person injured on its tracks. These cases cover every gradation of the relationship from that existing between the company and its employee rightfully in the position, in the discharge of his duties, to that existing between the company and-a naked trespasser on the tracks without the semblance of *73right. In a few jurisdictions no distinction is drawn between the measure of duty owed by the company to its employee, on the one hand, and the trespasser, on the other; but these cases are exceptional. In Arkansas and Tennessee, and possibly in other states, this rule is established by statute. With the [2] exceptions noted, it may be said that the rule is universal that as to a trespasser the company owes no primary duty. Its duty is of a negative character: to refrain from wantonly or willfully injuring him after discovering his presence in a position of peril. Passing to a consideration of the duty owed to a [3] licensee, however, we enter a veritable maze of conflicting and contradictory decisions. . Much of the confusion arises from the failure of the courts to distinguish between a license and an invitation, and particularly between an implied license and an implied invitation. The distinction is not merely one of descriptive phraseology, but has its foundation in sound common sense. An invitation is inferred where there is a common interest or mutual advantage, while a license is implied where the object is the mere pleasure, convenience or benefit of the person enjoying the privilege. (Bennett v. Louisville etc. R. R. Co., 102 U. S. 577, 584, 26 L. Ed. 235 [see, also, Rose’s U. S. Notes]; 2 White on Personal Injuries on Railroads, sec. 870.) The supreme court of Massachusetts has stated the rule as follows: “To come under an implied invitation as distinguished from a mere license, the visitor must come for a purpose connected with the business in which the occupant is engaged or which he permits to be carried on there. There must, at least, be some mutuality of interest in the subject to which the visitor’s business relates, although the particular thing which is the object of the visit may not be for the benefit of the occupant.” (Plummer v. Dill, 156 Mass. 426, 32 Am. St. Rep. 463, 31 N. E. 128; Wright v. Boston & A. R. R., 142 Mass. 296, 300, 7 N. E. 866; Elliott on Railroads, sec. 1249; 1 Thompson on Negligence, see. 987; 17 R. C. L. 566; 29 Cyc. 455.) The same distinction is made by the English courts. (Holmes v. Northeastern Ry. Co., L. R. 4 Exch. 254.)
*74At the time he was injured, Chester Jonosky was not engaged [4] in any business in which the railway company was interested. He was. crossing the tracks as a mere matter of convenience to himself, to save the effort of traveling the more circuitous route and crossing at the public street. At best, he was a bare licensee enjoying the gratuitous favor of the company in the use of its property. What, then, was the measure of the company’s duty toward him?
At common law the rule was well settled. The owner of [5] premises owed to the licensee no duty as to the condition of the premises, save that he should not knowingly expose him to hidden perils or wantonly and willfully cause him harm. The licensee entered upon the premises at his own risk and enjoyed the license subject to the concomitant perils arising from the owner’s use in the ordinary course of business. (Pollock on Torts, 10th ed., 544; 2 White on Personal Injuries on Railroads, sec. 860; Burchell v. Hickisson, 50 L. J. C. P. 101; Hounsell v. Smyth, 2 L. T. Rep. (n. s.) 440; Bolch v. Smith, 7 H. & N. 736; Phillips v. Library Co., 55 N. J. L. 307, 27 Atl. 478; Devoe v. New York, O. & W. Ry. Co., 63 N. J. L. 276, 43 Atl. 899; Sweeny v. Old Colony & N. Ry. Co., 10 Allen (Mass.), 368, 87 Am. Dec. 644; Romana v. Boston Elev. Ry. Co., 218 Mass. 76, Ann. Cas. 1917A, 893, 105 N. E. 598.) Thompson in his Commentaries on the Law of Negligence says: “A fair expression of the doctrine is that a railway company is under no obligation to protect a person on the track under an implied license to use its right of way, by taking steps to prevent harm to such per-, son, unless it has so acted as to mislead him; but that the extent of its duty is not to injure him wantonly or willfully; and that one who enters the yard of a railway company under a mere license, assumes the risk of all dangers which are caused by a natural and proper use of the tracks and trains.” (Sec. 1722.)
As opposed to the common-law rule is the so-called intermediate rule, adopted by a considerable number of American courts, substantially to this effect: “Where the track or the grounds of a railway are used by pedestrians as a passageway, for a con*75siderable time without objection, or with a tacit acquiescence on the part of the company, a pedestrian crossing over such grounds or along such tracks becomes a licensee in such a sense that he is not to be considered a mere trespasser acting at his peril, to whom the company owes no special duty until his peril is discovered, but that it becomes the duty of the company, in operating its road at such a place, to use increased prudence and caution in proportion to the danger to such persons, by maintaining a lookout upon it® engines and trains, and1, according to a considerable mass of authority, by giving audible signals on approaching such places, such as would be reasonably required on approaching a public crossing.” Thompson says this doctrine is “difficult to defend upon sound principle.” (2 Thompson on Negligence, par. 1724, p. 426.) Concerning it, Elliott says: “This rule seems to us to be not only contrary to the weight of authority, but also impracticable and in violation of the true principle that should govern such eases. If it be true, as generally conceded, that a licensee tabes his license subject to the ‘concomitant risks and perils,’ he must surely take it subject to the use of the road in the manner in which it was used at the time the license was granted, that is, subject to the running of trains in the ordinary manner without any special reference to him, and he occupies, therefore, to this extent, substantially the position of a trespasser. In other words, the company owes him no duty of active vigilance to specially look out for and protect him, for he must know that his license is subject to all risks incident to the use of the track by the company in the same manner in which it was used at the time the license was granted, and that the company assumes no new obligation or duty. Indeed, it seems to us that he is bound to know that a railroad company has no power to license the use of its tracks in such a manner as to interfere with its duties to the public as a common carrier. If it owes a duty to every bare licensee to run its trains with reference to him, to look out for him, to signal, to slow up, and, perhaps to stop wherever it has reason to expect him, it can do little else, its trains cannot be on time *76-and the traveling public must suffer.” (3 Elliott on Bailroads, sec. 1250.)
Upon the facts, this case cannot be distinguished from Egan v. Montana C. By. Co., 24 Mont. 569, 63 Pae. 831. In the Egan Case this court followed the common-law rule. The plaintiff was considered first as a trespasser and the general rule announced as above. The court then proceeded: “But if it be conceded that at the time of the accident the plaintiff was upon the track by tacit permission only, without any invitation, express or implied, his case is not bettered, for he went and remained there at his own risk, and to such a licensee by sufferance and tolerance (if the expression may be used to describe the plaintiff) no duty was imposed by law on the defendants other ■ or-greater than they would have owed to a naked trespasser. Sound reason and the decided weight of authority are in accord with these views.” The doctrine of that case, as applied to a licensee, has been affirmed in Beinhorn v. Griswold, 27 Mont. 79, 94 Am. St. Rep. 818, 59 L. R. A. 771, 69 Pac. 557, and in Montague v. Hanson, 38 Mont. 376, 99 Pac. 1063; and the same rule of liability was applied in Glover v. Chicago, M. & St. P. Ry. Co., 54 Mont. 446, 171 Pac. 278.
Counsel for respondent contend that by declarations contained in later cases1 this court has discredited the rule of the Egan Case, and, if not, that it is now time that the rule was abandoned altogether. With reference to the first contention it is sufficient to say that counsel are mistaken. A careful review of the cases cited will disclose that the rule of liability, as applied to a licensee, has been adhered to consistently ever since the decision of the Egan Case. The argument in support of the second contention should be addressed to the legislative assembly. This court is not a law-making body.
When the territory of Montana was organized, one of the [6] firsts acts of the legislative assembly was to declare that the ■common law of England should be the rule of law and decision in all the courts, except in so far as it was inconsistent with the Organic Act or the Acts of the territorial legislature. *77(Bannock Statutes, sec. 356.) That Act was continued in force from January 11, 1865. When the Codes were adopted in 1895, it was declared: “The common law of England, so far as it is not repugnant to or inconsistent with the Constitution of the United States or the Constitution or laws of this state or of the Codes, is the rule of decision in all the courts of this state.” As if to make assurance doubly sure, that declaration was repeated three times. It was carried into the revision of 1907 and is now found in sections' 3552, 6213 and 8060, Bevised Codes. The rule has not been altered by our legislature, nor does it conflict with the supreme law of the land, or with the Constitution or statutes of this state. For this court to assume to change it, would be nothing short of judicial legislation.
Rehearing denied February 24, 1920.Under the decision of the Egan Case and other cases approving it, the complaint does not state a cause of action, and under plaintiff’s own theory, it cannot be made to do so. The judgment is therefore reversed and the cause is remanded, with, directions to dismiss the action.
Mr. Chief Justice Brantly and Associate Justices Holloway, Hurly, Matthews and Cooper concur.