¶1
¶2' 1. The demurrer to the fourth count of the supplemental answer raised the question whether a tender of the stock, which, by the terms of the instrument sued on, is to be delivered to defendant upon the payment provided for therein, is necessary in order to entitle plaintiff to recover in the action. The court below, in the ruling upon the demurrer, held that it is not. To determine the question presented by this ruling is our first duty. The instrument obligates defendant to pay five hundred dollars upon a condition expressed in these words: “ Provided, that upon such payment there shall be delivered to me a certificate of stock for five paid up shares of $100 each, in such railroad company as may build and own said completed railroad.” Here are mutual covenants; by the first, defendant is bound to pay the sum of $500, and by the second the payee of the instrument undertakes to deliver the stock. They are to be performed simultaneously. The time of payment is determined by the running of the cars to Brighton. When the payment is made, upon that act being done and not at any subsequent or other time, the stock is to *508be delivered. Here "there are mutual and dependent .covenants ; neither can be enforced without performance or tender of performance of the other. That the covenants are dependent appears from the language of the instrument. The covenant of the payee of the contract is embodied in a proviso, which has the effect to defeat conditionally the prior obligation of the other party; that is, if the covenant of the payee is not performed, the obligation of the other party is defeated. Hence, before there can be recovery upon the first, the last must appear to have been performed or tender of performance must be shown. These are familiar principles of the law. It has been held that the use of the words upon or on occurring in a like connection make covenants dependent. Adams v. Williams, 2 Walls & Sergeant, 227; Holloway v. Davis, Wright’s Ohio Reports, 129; Taylor v. Rhea & Minor, 10 Ala. 414. It clearly has that force in the obligation in suit. The word upon indicates in the connection found in the instrument a state of dependence which is extended to the covenant of defendant by the use of the word ’provided!
¶3The covenant of defendant to pay the sum of money specified in the contract and the obligation of plaintiff to deliver the stock certificates being considered mutual and dependent, to give plaintiff a right of action, it is necessary that he perform or tender a performance of his covenant. School District v. Rogers, 8 Iowa, 316; Berryhill v. Byington, 10 id. 223; Winton v. Sherman, 20 id. 295.
¶4We are of the opinion, which is based upon the doctrines just stated, that the court erred in sustaining the demurrer to the fourth count of the supplemental answer, holding thereby that a tender of the certificate of stock was not necessary to be shown in order to fix defendants’ liability.
¶5Counsel for appellee insist that it appears from the very nature of the stock certificates which defendant was to receive, that the covenant of defendant was not dependent upon the covenant of the other party. The certificate they claim cannot be issued until payment is made ; that the certificate provided for is of “paid up” stock, and they ask how can it be issued *509until it is paid for ? They claim that it must hare been, therefore, the intention of the parties that the payment of defendant should be made before he received the certificate. But it will be observed that the contract does not provide that the stock defendant is to receive is to be necessarily the stock of the corporation that is named therein as the payee or that it is to be the identical stock which shall he paid up> by the money received from defendants. Facts developed in the court on the trial afford support for this construction of the instrument and render a ready answer to the position of plaintiff under consideration. A certificate of stock of the required amount issued by the Chicago and South-western Railway Company was offered by plaintiff and received in evidence. It was issued to plaintiff and transferred by proper indorsement to defendant and is claimed to be a certificate of the kind of stock to which defendant, under the contract, is entitled; a claim, we think, the record before us well supports. It is thus demonstrated that the certificate required by the contract may be issued and delivered to defendant at the time payment shall be made and before that time, so that it may be tendered in performance of the contract requiring its delivery.
¶6
¶7
¶8III. It appears from the record that the Chicago and Southwestern Railroad Company was organized by the consolidation of the Chicago and South-western Railroad Company of Iowa and the Chicago and South-western Railroad Company of Missouri. The defendant offered to prove that neither the first named of these corporations nor the consolidated company, the Chicago and South-western Railroad Company, ever had its officers resident in this State, nor its offices, records and principal place of business here. The same fact, however, was not proposed to be proved as to the Iowa Railroad Company, the payee of the instrument sued upon. The court did not permit the evidence to be introduced, and this ruling is the next ground of error urged by defendant. It is insisted that noncompliance with the law in this respect renders invalid the *511transfer of the instrument in suit by the payee to the Chicago and South-western Railroad Company; and the consolidation of the different companies would not be binding upon defendant unless assented to by him. The point made is, that on account of non-compliance with the law by the Chicago and South-western Railroad Company, and one of the two companies consolidating into that corporation, it could not acquire property in the instrument sued on, and the act of consolidation, so far as defendant’s rights are concerned, is void. It is not questioned that the Chicago and South-western Railroad Company is a corporation de facto, that it is exercising the functions of a corporation, and in their exercise obtained the instrument sued on under the very conditions expressed therein, viz.: by building the line of railroad, to aid the construction of which the contract was executed. Now it will hardly be pretended that under these circumstances a violation of the law by the corporation’s failure to manage and conduct its business at places required by law and by officers resident in this State, wotdd defeat their rights to take paper of the character of that in suit and transfer it to a good-faith purchaser. Whatever may be the effect of such disobedience of the law, it cannot be that one bound by a contract can, in order to defeat recovery thereon, set up such matter in defense. See Washington College v. Duke, 14 Iowa, 14; Eakright v. The Logansport and N. R. Co., 13 Ind. 404; Duke v. Cahawby Nav. Co., 16 Ala. 372; Anderson v. Newcastle and R.R. Co., 12 Ind. 376.
¶9We think this ease is within the spirit if not the very terms of Revision, section 1181 (Code, § 1089), which provides that “no body of men acting as a corporation under the provisions of this chapter shall be permitted to set up the want of legal organization as a defense to an action against them as a corporation, nor shall any person, sued on a contract made with such corporation, … ke permitted to set up a want of such legal organization in his defense.” The objection urged by defendant reaches to the legality of the organization of the Chicago and South-western Railroad Company, the corporation that built the railroad contemplated *512in the instrument executed by defendant. If the contract had been made directly with the company such a defense could not have been pleaded to an action thereon. Howe Machine Co. v. Snow, 32 Iowa, 433. But while it was made with the Iowa Railroad Company, it contemplates that the road may be built by another corporation, and it seems to have been the object of the parties to so provide that all the rights of the Iowa Railroad Company under it could be transferred to and its obligations assumed by another railroad company. While, therefore, the contract was originally not directly between defendant and the Chicago and South-western Railroad Company, yet as it was the intention of the parties that it might be transferred to that company, defendant surely cannot set up defenses which would be forbidden were the Chicago and South-western Railroad Company a party named in the instrument. The legal principle is this: If a person execute his note under an arrangement that it shall be transferred to any other person who shall do certain labor, the performance of which constitutes the consideration of the instrument, he cannot question the capacity of the person receiving the note and doing the labor under such a contract, to enforce it against him, if such person could have enforced the contract had it been made with him originally. Indeed, if a contract be executed with the express understanding that it shall be transferred with its rights and obligations to a third party, he will have all the rights under it when so transferred, that he would have possessed had he been an original party thereto, and in such a case it could be held without any great stretch of liberality, that the contract was made with him. If this position be correct the statute above quoted is applicable to the facts involved in the question under consideration, and determines that the want of a legal organization of the corporation transferring the contract to plaintiff cannot be set up as a defense to this action.
¶10
¶11
¶12The answer of defendant’s counsel to this objection is not. sufficient. They claim, that the object of the evidence was •not to show title in the railroad company, but to show the fact that deeds were on record conveying the right of way to it But we do not concur in this statement of fact. There vwas no issue in the case calling for evidence of the fact which '.■plaintiff claims the records were introduced to prove. As we ¡■•understand the abstract, the evidence was introduced to show ¡■that the Chicago & South-western Railroad Company owned ■.the roa-d in order to establish a compliance with the provision ..■of the contract requiring stock of the company building and .-owning the road, to be delivered to defendant, a fact that was ; in issue :in the case.
¶13■ But counsel for plaintiff maintain that if the court did err :-'in this ruling, it was error without prejudice as there was •■other ample evidence establishing the fact. There was other evidence upon the point, as the articles of incorporation of •¡the Chicago & South-western Railroad Company, a map of the troad and testimony of witnesses showing its completion, etc., .■.etc. But we are unable to say that upon such evidence without the deeds and other instruments erroneously introduced, the fact could not have been otherwise found than that the road was owned by the Chicago & South-western Railroad Company — a conclusion to which we must reach before wo ■ could hold that the evidence so erroneously admitted did not ■work prejudice to defendant.
¶14*515
¶15*514
¶16*516
¶17IX. A contract between the Iowa Railroad Company and the Chicago and South-western Railroad Company was introduced in evidence, defendant objecting thereto. Its admission is assigned for error. The instrument is not set out in the record; neither do the facts upon which the objections to it were grounded affirmatively appear. No question, therefore, in regard to the ruling of the court admitting the evidence is in a shape to be passed upon by us.
¶18We have considered all questions upon the record of the case before us which may again arise in another trial. On account of the errors pointed out in paragraphs I and V of this opinion the judgment of the district court is reversed and the cause remanded.
¶19Reversed.