It is well established law, that, where one contracts to furnish labor and materials, and construct a chattel or build a house on land of another, he will not ordinarily be excused from performance of his contract by the destruction of the chattel or building, without his fault, before the time fixed for the delivery of it. Adams v. Nichols, 19 Pick. 275. Wells v. Calnan, 107 Mass. 514. Dermott v. Jones, 2 Wall. 1. School Trustees of Trenton v. Bennett, 3 Dutcher, 513. Tompkins v. Dudley, 25 N. Y. 272. It is equally well settled, that when work is to be done under a contract on a chattel or building which is not wholly the property of the contractor, or for which ne is not solely accountable, as where repairs are to be made on the property of another, the agreement on both sides is upon the implied condition that the chattel or building shall continue in existence, and the destruction of it without the fault of either of the parties will excuse performance of the contra<jt, and leave no right of recovery of damages in favor of either against the other. Taylor v. Caldwell, 3 B. & S. 826. Lord v. Wheeler, 1 Gray, 282. Gilbert & Barker Manuf. Co. v. Butler, 146 Mass. 82. Eliot National Bank v. Beal, 141 Mass. 566, and cases there cited. Dexter v. Norton, 47 N. Y. 62. Walker v. Tucker, 70 Ill. 527. In such cases, from the very nature of the agreement as applied to the subject matter, it is manifest that, while noth*520ing is expressly- said about it, the parties contemplated the continued existence of that to which the contract relates. The implied condition is a part of the contract, as if it were written into it, and by its terms the contract is not to be performed if the subject matter of it is destroyed, without the fault of either of the parties, before the time for complete performance has arrived.
The fundamental question in the present case is, What is the true interpretation of the contract? Was the house while in the process of erection to be in the control and at the sole risk of the defendant, or was the plaintiff to have a like interest, as the builder of a part of it ? Was the defendant’s undertaking to go on and build and deliver such a house as the contract called for, even if he should be obliged again and again to begin anew on account of the repeated destruction of a partly completed building by inevitable .accident, or did his contract relate to one building only, so that it would be at an end if the building, when nearly completed, should perish without his fault ? It is to be noticed that his agreement was not to build a house, furnishing all the labor and materials therefor. His contract was of a very different kind. The specifications are incorporated into it, and it appears that it was an agreement to contribute certain labor and materials towards the erection of a house on land of the plaintiff, towards the erection of which the plaintiff himself was to contribute other labor and materials, which contributions would together make a completed house. The grading, excavating, stone-work, brick-work, painting, and plumbing were to be done by the plaintiff.
Immediately before the fire, when the house was nearly completed, the defendant’s contract, so far as it remained unperformed, was to finish a house on the plaintiff’s land, which had been constructed from materials and by labor furnished in • part by the plaintiff and in part by himself. He was no more responsible that the house should continue in existence than the plaintiff was. Looking at the situation of the parties at that time, it was like a contract to make repairs on the house of another. His undertaking and duty to go on and finish the work was upon an implied condition that the house, the product of their joint contributions, should remain in existence. The destruction of it by fire discharged him from his contract. The *521fact that the house was not in existence when the contract was made is immaterial. Howell v. Coupland, 1 Q. B. D. 258.
It seems very clear that, after the building was burned, and just before the day fixed for the completion of the contract, the defendant could not have compelled the plaintiff to do the grading, excavating, stone-work, brick-work, painting, and plumbing for another house of the same bind. The plaintiff might have answered, “ I do not desire to build another house which cannot be completed until long after the date at which I wished to use my house. My contract related to one house. Since that has been destroyed without my fault, I am under no further obligation.” If the plaintiff could successfully have made this answer to a demand by the defendant that he should do his part towards the erection of a second building, then certainly the defendant can prevail on a similar answer in the present suit. In other words, looking at the contract from the plaintiff's position, it seems manifest that he did not agree to furnish the work and materials required of him by the specifications for more than one house, and if that was destroyed by inevitable accident, just before its completion, he was not bound to build another, or to do anything further under his contract. If the plaintiff was not obliged to make his contribution of work and materials towards the building of a second house, neither was the defendant. The agreement of each to complete the performance of the contract after a building, the product of their joint contributions, had been partly erected, was on an implied condition that the building should continue in existence. Neither can recover anything of the other under the contract, for neither has performed the contract so that its stipulations can be availed of. The case of Cook v. McCabe, 53 Wis. 250, was very similar in its facts to the one at bar, and identical with it in principle. There the court, in an elaborate opinion, after a full consideration of the authorities, held that the contractor could recover of the owner a pro rata share of the contract price for the work performed and the materials furnished before the fire. Clark v. Franklin, 7 Leigh, 1, is of similar purport.
What are the rights of the parties in regard to what has been done in part performance of a contract in which there is an implied condition that the subject to which the contract relates *522shall continue in existence, and where the contemplated work. cannot be completed by reason of the destruction of the property "without fault of either of the parties, is in dispute upon the authorities. The decisions in England differ from those of Massachusetts, and of most of the other States of this country. There the general rule, stated broadly, seems to be that the loss must remain where it first falls, and that neither of the parties can recover of the other for anything done under the contract. In England, on authority, and upon original grounds not very satisfactory to the judges of recent times, it is held that freight advanced for the transportation of goods subsequently lost by the perils of the sea cannot be recovered back. Allison v. Bristol Ins. Co. 1 App. Cas. 209, 226. Byrne v. Schiller, L. R. 6 Ex. 319. In the United States and in Continental Europe the rule is different. Griggs v. Austin, 3 Pick. 20, 22. Brown v. Harris, 2 Gray, 359. In England it is held that one who has partly performed a contract on property of another which is destroyed without the fault of either party, can recover nothing; and on the other hand, that one who has advanced payments on account of labor and materials furnished under such circumstances cannot recover back the money. Appleby v. Myers, L. R. 2 C. P. 651. Anglo-Egyptian Navigation Co. v. Rennie, L. R. 10 C. P. 271. One who has advanced money for the instruction of his son in a trade cannot recover it back if he who received it dies without giving the instruction. Whincup v. Hughes, L. R. 6 C. P. 78. But where one dies and leaves unperformed a contract which is entire, his administrator may recover any instalments which were due on it before his death. Stubbs v. Holywell Railway, L. R. 2 Ex. 311.
In this country, where one is to make repairs on a house of another under a special contract, or is to furnish a part of the work and materials used in the erection of a house, and his contract becomes impossible of performance on account of the destruction of the house, the rule is uniform, so far as the authorities have come to our attention, that he may recover for what he has done or furnished. In Cleary v. Sohier, 120 Mass. 210, the plaintiff made a contract to lath and plaster a certain building for forty cents per square yard. The building was destroyed by a fire which was an unavoidable casualty. The *523plaintiff had lathed the building and put on the first coat of plaster, and would have put on the second coat, according to his contract, if the building had not been burned. He sued on an implied assumpsit for work done and materials found. It was agreed that, if he was entitled to recover anything, the judgment should be for the price charged. It was held that he could recover. See also Lord v. Wheeler, 1 Gray, 282; Wells v. Calnan, 107 Mass. 514, 517. In Cook v. McCabe, ubi supra, the plaintiff recovered pro rata under his contract; that is, as we understand, he recovered on an implied assumpsit at the contract rate. In Hollis v. Chapman, 36 Texas, 1, and in Clark v. Franklin, 7 Leigh, 1, the recovery was a proportional part of the contract price. To the same effect are Schwartz v. Saunders, 46 Ill. 18, RTawson v. Clark, 70 Ill. 656, and Clark v. Busse, 82 Ill. 515. The same principle is applied to different facts in Jones v. Judd, 4 Comst. 411, and in Hargrave v. Conroy, 4 C. E. Green, 281. If the owner in such a case has paid in advance, he may recover back his money, or so much of it as was an overpayment. The principle seems to be, that when, under an implied condition of the contract, the parties are to be excused from performance if a certain event happens, and by reason of the happening of the event it becomes impossible to do that which was contemplated by the contract, there is an implied assumpsit for what has properly been done by either of them, the law dealing with it as done at the request of the other, and creating a liability to pay for it its value, to be determined by the price stipulated in the contract, or in some other way if the contract price cannot be made applicable. Where there is a bilateral contract for an entire consideration moving from each party, and the contract cannot be performed, it may be held that the consideration on each side is the performance of the contract by the other, and that a failure completely to perform it is a failure of the entire consideration, leaving each party, if there has been no breach or fault on either side, to his implied assumpsit for what he has done.
The only question that remains in the present case is one of pleading. The defendant is entitled to be compensated at the contract price for all he did before the fire. The plaintiff is to be allowed for all his payments. If the payments are to be treated merely as advancements on account of a single entire *524consideration, namely, the completion of the whole work, the work not having been completed, they may be sued for in this action, and the defendant’s only remedy available in this suit is by a declaration in set-off. If, on the other hand, each instalment due was a separate consideration for the payment made at the time, then as to those instalments and the payments of them the contract is completely executed, and the plaintiff can recover nothing, and the implied assumpsit in favor of the defendant can be only for the part which remains unpaid.
We are of opinion that the consideration which the defendant was to receive was an entire sum for the performance of the contract, and that the payments made were merely advances on account of it, and that, on his failure to perform the contract, there was a failure of consideration which gave the plaintiff a right to sue for money had and received, and that the like failure of consideration on the other side gave the defendant a right to sue on an implied assumpsit for work done and materials found.
The $38 due from the defendant to the plaintiff cannot be recovered in this action. The report and the pleadings show that the suit was brought under an assignment for the benefit of the insurers, to recover damages for a breach of the contract for the erection of the building, and not to recover the value of the shingles or weights carried away from the ruins.
According to the terms of the report, the ruling being wrong, such order may be made as this court shall direct. A majority of the court are of opinion that the verdict should be set aside, and the defendant be given leave to file a declaration in set-off, if he is so advised, on such terms as the Superior Court deems reasonable.
Verdict set aside.