1. The difficulty in this case is, to ascertain precisely what is the legal effect of the contract between these parties, as evinced by the writing itself — for we do not learn from the bill of exceptions, that any attempt was made by the plaintiff to show, the ordinary course of boring these wells is, that the employer risks the chance that water will be procured. Whether such evidence to explain the meaning of the written contract is admissible, it is not our purpose now to inquire. The question is, does the written instrument in evidence prima fade bind the defendant to pay the plaintiff a compensation for his labor, unless the well is finished ? When all its terms are examined, we think it must be considered as an entire contract. It will be seen, the defendant stipulates to pay for a finished well. This compensation, it is true, is to be ascertained by certain rates for different portions of the work, but the aggregate sum cannot be ascertained until the work is so far done that water is procured ; and although a certain time is fixed for payment, it seems this must be taken with the reservation that the boring should be then completed; for otherwise the contract involves the absurdity of agreeing to pay on a certain day, when at that day there might be no means to ascertain the sum to be paid. Considering this an entire contract, the law is well settled, the plaintiff is entitled to no compensation without an entire performance. [Phelps v. Sheldon, 13 Pick. 50; Sickels v. Pattison, 14 Wend. 257.] I speak not now of the cases where the workmanship, although incomplete according to the contract, is accepted, or used by the employer, in which event the equitable rule seems adopted, of allowing compensation according to the value of the workmanship. Nor is there any peculiar hard*541ship in holding an artificer as impliedly warranting, that his workmanship shall effect the object contemplated. Where a person is employed in a work of skill, the employer buys both his labor and his judgment; he ought not to undertake the work if he cannot succeed, and he should know whether it will or not. [Duncan v. Blundell, 3 Starkie’s N. P. Cases, 6; see also, Hill v. Featherstonhaugh, 7 Bing. 569.]
There doubtless are avocations in which the results of labor are so uncertain, that it is not usual for the workman to warrant the attainment of the object, -but if, notwithstanding the chance of failure, he chooses to stipulate to accomplish the object, or, what is the same thing, to receive iiis compensation when the object is finished, I know of •no rule which awards him remuneration for his labor if 'he fails. It may be that the general course of artesian well-makers, is not to warrant the obtaining water without an extra compensation, but as I have endeavored to show, the effect of this instrument is a warranty. If, throitgh mistake or otherwise, the instrument does not speak the true agreement of the parties, there is a proper mode of relief. This view of the contract disposes of the cause, and shows the ■court did not err in instructing the jury on the question of performance.
2. On the other point, we think there is likewise no error. What was done by the defendant’s overseer certainly was no intermeddling, by which the plaintiff was hindered or prevented from carrying it on. It seems rather to have been an experiment, to ascertain if the further prosecution of the work was practicable.
We can perceive no error in the record. Judgment affirmed.
ORMOND, J.This is a very obscure, and badly drawn contract, for the boring of an artesian well. It is probably ■one of those cases, in which parol evidence would have been admissible to explain the contract, by proving the custom of that region of the State, in which these wells are common.
We have, however, to expound the contract, without any ■other guide, than the dim light which the contract itself affords, and in my judgment, that does not establish, that Stew-*542ar.t was to warrant that water would be obtained, either to flow over at the surface, or at such depth from the surface as to be available for ordinary uses.
This, I think, is fairly to be inferred from the stipulations ■contained in the contract. Weaver agrees to pay a certain price per foot for the first six hundred feet, and “ eight dollars per foot for the remaining distance necessary to obtain water.” It is perfectly clear, that Stewart could not insist ■on continuing to bore after he had obtained water, and it would seem equally certain, that Weaver could not insist on his prosecuting the work, after he had penetrated to such a depth that there was no hope of obtaining water. Indeed, from the nature of the work, there must be a point, when it would be impracticable to bore any longer, though long before this point would be reached, all hope would be lost of getting water.
There is one term of the contract, and indeed almost the only one which is not ambiguous, utterly hostile to this indefinite prosecution of the work, at the instance of either party, and that is that the work is to be paid for by a stipulated period. The parties therefore certainly contemplated, that the experiment of getting water could be tested by that time, and that neither party had the right to insist on its prosecution for an indefinite period.
It is very improbable, that by promising to “put the well in the same finished order as his best finished wells,” Stewart intended to warrant that water would be obtained. The contract shows, that great doubt was felt as to the result of the undertaking, and it is difficult to assign a reason why a warranty was not plainly expressed, if one was intended.
The true meaning of the contract, therefore, appears to be, that Stewart was to bore, as long as it was practicable to do so, and Weaver was willing he should continue. This was ¡the construction put upon the contract, by the parties themselves, as we find the agent of Weaver, when Stewart wished to discontinue the work, insisting he could still go on with it; and demonstrating its practicability, by superintending the workmen himself for one day, and making considerable progress ; and if Stewart refused to prosecute the work, *543when it was practicable for him to continue, it was a breach of the contract.
The court, in substance, charged the jury, that if Stewart did not perform his contract, and was not prevented from performing it, by the agent of the other party, he could not recover. This was undoubtedly correct, and if either party wished the court to state what the law of the contract was, a charge upon that point should have been asked. [Leigh & Co. v. Lightfoot, 11 Ala. 934.]
The court did not err, in instructing the jury, that the conduct of the agent of Weaver, as proved, did not amount to an interference, authorizing Stewart to abandon the work.
There being no error shown upon the record, the judgment must be affirmed.
COLLIER, C. J.Unassisted by extrinsic proof, it is difficult to interpret the contract of the parties, so as to determine with certainty its true meaning. I therefore waive the consideration of the question, whether the undertaking of the plaintiff obliged him, as a condition precedent to his right to demand payment, to obtain water available for ordinary purposes. However this may be, I think it clear, that as long-as it was practicable for the plaintiff to perforate the earth in the mode contemplated, and the defendant was willing to receive and compensate his services, his contract obliged him to continue the effort to obtain water. If he voluntarily, and without the consent of the defendant, abandoned the enter-prize, he cannot recover. There is nothing in the record to show that the plaintiff was compelled by the defendant to cease his operations, or that the latter assented he might do so.
Note. — This and the following Opinions of Judge Goidthwaite, were-pronounced by the Court after his decease,