The plaintiff recovered judgment before a justice of the- peace for the value of a domestic animal killed upon defendant’s railroad track, and was allowed by the justice $10, extra costs, as provided in such cases by Gen. St. 1878, c. 34, § 56. On appeal, the district court affirmed the judgment for damages, but disallowed this item of costs. The defendants appeal from the judgment, and the plaintiff also appeals and complains of the decision and order of the court disallowing the costs. These appeals were heard together.
I. The defendants contend that the finding upon the merits was unsupported by evidence sufficient to sustain the charge of negligence on their part in failing to maintain their fences, and also that it discloses contributory negligence on plaintiff’s part, which, as matter of law, should defeat his action.
(1) It is settled in this state that contributory negligence in this class of actions on the part of plaintiff, is a defence. Whittier v. Chic., Mil. & St. P. Ry. Co., 24 Minn. 394; Fleming v. St. Paul & D. R. Co., 27 Minn. 111. It is considered that the statute has declared the liability in such cases, subject to the general rule of law applicable in actions for negligence, the application of which is also eminently proper, having respect to the safety of railway trains. Curry v. Chic. & N. W. Ry. Co., 43 Wis. 665.
(2) It is not practicable to lay down a general rule defining contributory negligence in such cases. From the nature of the *429case, under varying circumstances, it is ordinarily a question of mixed law and fact for the jury. Schubert v. Minn. & St. L. Ry. Co., 27 Minn. 360; Curry v. Chic. & N. W. Ry. Co., 43 Wis. 685-6. And, unless the evidence conclusively establish the fact, it must be so submitted. The fact that cattle are pastured upon land adjoining a railroad, and have previously, at divers times, passed through or over a defective or insufficient fence upon or across the track, is proper to go to the jury upon the question, but is not alone sufficient as matter of law, because this may naturally result from the lawful right of the owner to use and pasture his land, and which he may reasonably do, on the assumption that if the corporation has neglected to make or keep up a lawful fence, it will run its trains with due care with reference to that fact. Rogers v. Newburyport R. Co., 1 Allen, 16; Schubert v. Minn. & St. L. Ry. Co., 27 Minn. 360.
(3) Some of the cases reported serve to illustrate the kind of evidence by which such contributory negligence may be established-For example, it may appear from the owner’s imprudence or carelessness in driving his animals across the track; in his having assumed the burden of keeping up the fence; in turning out cattle known to be breaehy; from leaving open a gate or bars next the track; in exposing them at unreasonable times or in an unusual manner; or in turning them out where a lawful fence previously built had suddenly been prostrated by a storm, (or had been removed or left down by a stranger,) and before sufficient time had elapsed to repair the same. In the last instance, however, there would also be wanting the element of negligence on the part of the company. Robinson v. Grand Trunk Ry. Co., 32 Mich. 322; Jones v. Cheboygan & Fond du Lac R. Co., 42 Wis. 306; Aylesworth v. Chicago, etc., R. Co., 30 Iowa, 459; Whittier v. Chic., Mil. & St. P. Ry. Co., 24 Minn. 394; Goddard v. Chic. & N. W. Ry. Co., 54 Wis. 548; Klatt v. City of Milwaukee, 53 Wis. 196.
In this case defendant corporation had previously built a wire fence along its right of way through plaintiff’s land, but which, as the evidence tends to prove, had been for some considerable time out of repair, so that cattle could and had frequently passed through it. The *430animal killed in this instance bad, it appears, so passed through, which fact having been known to the plaintiff, -the defendant claims is evidence of contributory negligence which should defeat his recovery. The facts upon which defendant relies to establish this de-fence, at the same time prove the condition of the fence to be such that it must have been out of repair for a sufficient length of time to constitute proper evidence of the negligence of the company. The questions of defendant’s negligence, and plaintiff’s contributory negligence, were both for the jury. There must be something more than the facts disclosed here to warrant the court in holding, as matter of law, that there was contributory negligence in this case; some further act or omission on, plaintiff’s part, or something additional of a special or exceptional character in the circumstances of the case.
II. It is contended that the provisions of section 56, allowing extra costs in this class of actions, is unconstitutional, on the ground that it is discriminating and partial legislation, and denies to the defendant the equal protection of the laws. The allowance and regulation, by the statute, of costs in any particular class of actions is a matter properly within the reasonable discretion of the legislature. At the common law no costs were allowed eo nomine, but in actions where the plaintiff recovered damages, the jury were allowed to include his expenses, though the defendant, in ease he prevailed, had no indemnity for his. Bouv. Law. Dict. tit. “Costs;” 3 Bl. Com. 399. At an early day the matter became a subject of legislative enactment. The chief purpose of the allowance of costs is compensation or indemnity for expenses incurred in enforcing a legal, or resisting an illegal, claim, though in some eases the legislature are also influenced by considerations of public policy. The right of the legislature to regulate the practice and proceedings of suitors in the tribunals of the state, including such reasonable regulations as to the adjustment of costs and expenses between the parties as may best promote the ends of justice and the public good, has been too long exercised and established to be questioned.
The principle that governs the allowance of costs does not require that they should be uniform in all actions, nor the same to each of the litigants in an action; and so double or extra costs are sometimes *431allowed to plaintiffs or defendants, as the. case may be, because deemed proper from the nature and circumstances of certain species of litigation; in England, for example, in favor of public officers, and in favor of the defendants in certain actions of ejectment. 2 Tidd, Pr. 988. So in New York, double costs are-allowed in actions against public officers, and, in the case of officers of- the militia, treble costs. 3 Wait, Pr. 490. The object is the protection of the officer against harassing suits, and compensation for his expenses. McFarland v. Crary, 6 Wend. 297. And by section 308 of the New York Code, a special additional allowance is made to plaintiffs (only) in actions to foreclose mortgages, or in which an attachment has been issued, etc. Of the propriety and justice of such enactments, within reasonable limits, the legislature must judge.
We do not think that the statute in this case is beyond the legislative authority. Accidents from the presence of domestic animals upon railroad tracks are liable to be more or less frequent, resulting in serious damage to owners of stock, and constituting a constant source of danger to railroad trains and passengers. Aside from the •question of such conduct or negligence on the part of the owners of such animals as would defeat actions for damages in such cases, (thus serving to check negligence in that direction,) this danger can most effectually be guarded against by maintaining sufficient railway fences and cattle guards, and by the careful management of railway-trains. It may be presumed that the legal liability for damages suffered in such cases reasonably tends to effect this result; — which might, however, be in a great measure defeated, if the litigation to recover such damages were made so expensive, difficult, or tedious as to discourage the proper actions therefor. The amount in controversy in such cases is usually not large, and might naturally, in the case of contested suits,, be largely consumed in the expenses of litigation. The legislature have therefore, in their judgment, deemed it proper to allow additional costs to plaintiffs, in case of recovery, in this class of cases.
This legislation is not liable to the objection that it is unequal or partial because confined to one species of litigation, for the reason that it is applicable alike to all railroad corporations in the state, *432and to all plaintiffs claiming damages for cattle, killed or injured through their negligence, as the statute provides. The grants of railway franchises in this state are wholly to corporations,- either by special charters or under the general law. It is not questioned that such corporations own and manage all the railroads of the state. •There is therefore no unlawful discrimination against them. “If,” says Mr. Cooley, “the laws be otherwise unobjectionable, all that can be required in these cases'is that they be general in their application to the class or locality to which they apply; and they are then public in character, and of their propriety and policy the legislature must judge.” Cooley on Const. Lim. 390; Jones v. Galena & C. U. R. Co., 16 Iowa, 6; Tredway v. S. C. & St. P. R. Co., 43 Iowa, 527; Cairo & St. L. R. Co. v. Warrington, 92 Ill. 157.
As affects the defendant’s appeal the judgment is affirmed. As to the appeal of the plaintiff the judgment is directed to be modified in conformity with this opinion. ' The case is remanded to the district court, with directions to allow the disputed item of $>10, costs, and include the same in the judgment.