delivered the opinion of the the commission of appeals, Section A.
The Houston & Texas Central Railroad Company, plaintiff, sued the Diamond Press Brick Company, defendant, a corporation, to recover the amount of a judgment one Henry Hamilton had recovered against it. Hamilton’s action was based upon plaintiff’s negligence in permitting a crossing on a spur track running to defendant's brick plant to become unsafe, alleging that in attempting to drive over it in its dangerous condition his team became frightened and ran away, resulting in personal injuries.
The Railroad Company based its action for recovery upon a contract entered into with the Brick Company under the terms of which the Railroad Company had built and was maintaining a spur track to the plant of the Brick Company for the convenience of the latter. *22The material provisions of the contract necessary to a decision of the case are:
“Fourth. It is agreed and understood that the said party of the second part shall bear the expense of keeping the said spur track in good condition, and that it will, upon receipt of bills therefor, promptly reimburse the party of the first part for any and all expense incurred by it for material and labor furnished in making such repairs as may be necessary to keep the said spur track in first-class condition.” and
“Seventh. The party of the second part further agrees and obligates itself to save the party of the first part harmless from any and all claims for damages arising from any cause whatsoever growing out of the construction, maintenance and operation of said spur track, including damages for injury to or killing of stock belonging to the party of the. second part, its employes or tenants, whether such claim is made by any person, firm, corporation or municipality.
“The party of the second part further agrees and binds itself to reimburse the said party of the first part for any and all amounts it may be compelled to pay in settlement of any claim for which, under the terms of this agreement, the party of the second part would be liable.”
The defendant contended (1) that it was not within the contera- ' plation of the parties that the Brick Company was to be responsible for the negligence of the Railroad Company in this character of ease; (2) that if the contract be construed as requiring- reimbursement to the railway company, it would be against public policy and therefore void; and (3) that the same is an ultra vires act on its part and hence unenforceable.
The court, upon motion of defendant, sustained exceptions to plaintiff’s petition; and plaintiff refusing to amend, judgment was rendered in favor of defendant. Upon appeal, the Court of Civil Appeals affirmed the judgment. 188 S. W., 32.
The writ was granted upon application referred to the Committee of Judges.
The proximate cause of the damages suffered by plaintiff, as shown by the pleadings, and for which it seeks indemnity under the contract, was due to its negligence in failing to maintain the crossing in first-class condition; but plaintiff insists that, though it was negligent in this res-pect, nevertheless it is entitled to indemnity under the provisions of Article 7 of the contract.
In our opinion Section 7 of the contract is a positive agreement to indemnify the Railroad Company against such a claim as the one here involved. Under this section the obligation was to save the Railroad Company “harmless from any and all claims for damages” arising, not only out of the construction and operation of the spur *23track, but out of its maintenance as well. This section would be inoperative and rendered meaningless if construed to exclude negligence, as a claim for damages against the Railroad Company growing out of any of these things could have no standing in a court unless predicated upon the negligence of the Railroad Company, or its servants. The section must, we think, be construed as contemplating claims for damages founded upon such negligence.
The absolute agreement embodied in the Seventh Section is not to be nullified because of the Fourth Section. The agreement in the latter section that the Railroad Company shall hear the expense of keeping the spur track in good condition is not inconsistent with the agreement of the Brick Company in the Seventh Section to hold the Railroad Company harmless against any claim for damages growing out of the maintenance of the track if it were not kept in good condition. The contract, as a whole, simply means that the expense of keeping the spur track in good condition was to be borne by the Railroad Company, but the Brick Company was to hold the Railroad Company harmless against claims for damages founded upon any negligent condition in the construction, operation, or maintenance of the track.
The contention that Section 7 is contrary to public policy is based upon the theory that if a railroad company be reimbursed for its negligent act in the maintenance of the crossing it will have a tendency to cause the Railroad Company to omit the performance of the duties imposed by Art. 6494 Revised Civil Statutes which requires railroad companies to keep that portion of its road-bed and right of way over or across which any public roadway runs, in proper condition for the use of the traveling public. The contract does not undertake to relieve the Railroad Company from the duties imposed by the article, nor free it from liability for damages occasioned to others as the result of its failure to perform those duties. We can not assume that because the agreement has been made, the Railroad Company will violate the statute. We conclude that the contract is not violative of the public policy of the state, but is one which the parties were at liberty to make. Missouri K. & T. Ry. Co. v. Carter, 95 Texas, 461, 68 S. W., 159.
The defense by the Brick Company that the contract is an ultra vires act on its part is likewise unavailing. A corporation is empowered to enter into contract to enable it to carry on the business and accomplish the purpose of its existence, unless prohibited by law or the provision of its charter. The language of the agreement, now under consideration, leaves no room to doubt that the contract was made in order to accomplish the purpose for which the corporation was created. The spur track was constructed solely for the promotion of the private interests of the Brick Company, and out of its con*24struction, operation, and maintenance grew increased risks which it was not otherwise required to assume., The benefits, secured to the one, and the increased risk to the other, is-the basis for the provision justifying its inclusion in the agreement. The making of it was, under the circumstances, an incidental power of the corporation, appropriate to the execution of the specific power granted by the charter, and hence not an ultra vires act.
We recommend that the judgments of the Court of Civil Appeals and the District Court be reversed and judgment rendered for plaintiff for the sum of $1,430.00, the amount paid Hamilton by the Railroad Company, with interest thereon from the 15th day of February, A. D. 1914.