But this question relates to the right of plaintiff to recover at all as against the sureties, and it could not be determined on this motion. The only question raised by the motion was, whether defendants were entitled to have the question, whether they were liable, on the claim which plaintiff was asserting against them, tried in another county.
It also provides that, if any damage is done by the contractor or men in his employ, to lands or property in the vicinity, the engineer shall have the right to estimate the amount of such damages and pay the same to the owner of the property injured, and deduct the same in his first estimate thereafter. It also con tarns the following stipulation: “The said first party (Kavanaugh) agrees to pay all just claims against them (him) or against any sub-contractor under them (him) for service or labor performed or material furnished in the work under this contract, and to pay or cause to be paid all just claims growing out of said work, whether against them (him) or their (his) sub-contractors, for trespass, injury to lands, destruction of fences, and for land for waste material, and all claims for provisions and supplies, and bills for board of men and teams engaged upon such work, and all similar claims; said damage to be estimated as specified in the preceding clause.” It also provides that the contractor shall give a bond in the sum of ten thousand dollars, With sufficient sureties, for the faithful performance of the contract, and for the security of the construction company against all persons performing labor upon or furnishing materials for the work under or by virtue of the contract.
The condition of the bond is as follows: “That whereas, Marcus Kavanaugh, Jr., as principal, has this day entered into a contract with said Narrow Gauge Railway Construction Company, a copy of which is hereto attached and made a part hereof: Now if the said Marcus Kavanaugh, Jr., shall well and truly comply with said contract in the time and manner herein provided, then this obligation shall be void, otherwise in full force and effect.”
*157 The position of counsel for appellant is, that the sureties on the bond are not liable on the contract further than the express terms of the bond imply, and that, by these express terms of the bond, they have undertaken only that Kavanaugli will do the work within the time and in the manner provided in the contract.
But this position, we think, is not correct. It is provided in the contract that a bond should be given by Kavanaugli in an amount stated, and with certain conditions. The bond recites that Kavanaugli has entered into a contract as principal. A copy of the contract is attached to the bond, and declared to be a part of it, and the undertaking of the bond is that Kavanaugli shall well and truly comply with said contract in the time and manner herein provided. The plainest rules of construction require that the two instruments shall be read together in determining the undertaking of the obligors in the bond. 2 Parsons on Contracts, 503.
¥e think it clear that the bond was intended as a security that Kavanaugli would not only perform the work in the time and manner provided in the contract, but that he would perform every other covenant contained in it; and this is its effect.
It is probably true that the primary object of the construction company in requiring the bond to be given was to secure *158 the protection of its own interest. But the undertaking of Kavauaugh, as expressed in the contract, is not simply that he will repay to it such sums as it may be compelled to pay in the protection of its interests, or that he will pay the claims of such parties as may establish their liens on the property, but “that he will pay all just claims against him, or against sub-con tractors under him, for service or labor performed,’’etc.; and the bond, as we have seen, is a security for the performance of this undertaking; so that, whatever the primary or principal object of the parties may have been, they have undertaken that plain tiff’s claim shall be paid, regardless of whether or not the steps have been taken which would have compelled the construction company to pay it. Section 2552 of the Code provides that, “when a bond or other instrument given to the state, or county, * * * * * or to any officer or firm, is intended for the security of the"public generally, or of particular individuals, suit may be brought thereon in the name of any person intended to be thus secured, who has sustained an injury in consequence of the breach thereof.”
Under the provisions of this section, plaintiff has the right, without doubt, to bring suit on the bond in his own name. We think the demurrer was properly overruled, and the judgment is accordingly
Affirmed.
