delivered the opinion of the court:
This appeal presents questions of pleading. The circuit court of McLean County dismissed all six counts of plaintiff’s complaint for various reasons as will be more fully discussed. The complaint centered around defects which appeared in plaintiff’s home. Defendant was the builder.
Counts I and V alleged negligence resulting in economic loss to the plaintiff. Count II alleged that plaintiff was a third-party beneficiary of an agreement between defendant and the City of Bloomington, which had agreed not to prosecute defendant under the city building code if he made repairs. Count III alleged breach of the warranty of habitability. Count IV alleged fraud. Count VI was based on contract, an agreement by defendant with plaintiff to make repairs in exchange for plaintiff’s promise to forego further legal action.
We affirm the dismissal of all counts except Count VI based on the agreement.
The factual situation is relatively uncomplicated. The complaint alleges that defendant constructed the home, completing it in late 1975 or early 1976, for the original owners. Plaintiff purchased the premises from those original owners in April 1977. Shortly thereafter he discovered the defects complained of. In summary form, these are that the chimney and adjoining brick outer wall began to pull away from the rest of the house because defendant did not attach them firmly, that the wall and chimney were set in loose soil, thereby violating the local building code, that the supporting lintel was set only 24 inches deep, being another violation of the building code, and that the patio was improperly constructed. As a result of the movement of the chimney and the wall, a basement wall cracked and admitted water. Water also entered the roof near the affected area. Plaintiff has since caused repairs to be made by others.
In reviewing a complaint dismissed for failure to state a cause of action, properly pleaded allegations are assumed to be true. Giers v. Anten (1978), 68 Ill. App. 3d 535, 386 N.E.2d 82.
Counts I and V (the negligence counts) were dismissed by the trial court on the basis (1) that only economic loss was alleged, and (2) that there was either a lack of duty or lack of privity. The parties are in dispute over which was the true basis of the court’s ruling.
As to the economic loss, we are aware of the recent ruling in Moor-man Manufacturing Co. v. National Tank Co. (1980), 92 Ill. App. 3d 136, 414 N.E.2d 1302, appeal allowed (1981), 84 Ill. 2d 19, which is cited in the dissent. However, we find significant differences between the instant case and Moorman. Moorman defined economic loss as:
“Economic loss may be either direct or consequential. Direct economic loss occurs when a product damages itself or is unfit for the purpose for which it was sold. Such losses are generally limited to the price of the product. Consequential economic loss consists of an injury extrinsic to the product, such as lost profits or the loss of use of the product.” (92 Ill. App. 3d 136, 138, 414 N.E.2d 1302, 1305.)
There is no allegation in the instant case that the house was a total loss as a result of the purported defects. In fact, it is apparent that plaintiff continued to use the house for its intended purpose, albeit with some disaccommodation.
Furthermore, Moorman was concerned with a “product.” In holding that a grain storage tank was a product for purposes of strict liability, the court said:
“Illinois courts have said that certain items, under the facts presented, were not products: a condominium [citation]; a shelter care home [citation]; and a multilevel parking garage [citation]. The question of whether something is a product is determined by looking to the policies supporting the strict liability in tort doctrine. We have discussed these policies above — the manufacturer’s special responsibility to buyers, the need to protect helpless buyers, and the cost-spreading capacity of the manufacturer.” 92 Ill. App. 3d 136, 146, 414 N.E.2d 1302.
It is apparent that a single-family, custom-built dwelling is not such an item as will permit the manufacturer to spread the cost of a defect over a large number of persons under the rationale of Moorman.
For these reasons we find Moorman inapposite.
We agree that under modern tort theory privity is no longer a requirement. However, we know of no well-reasoned case which eliminates the requirement of duty. (Hunt v. Blasius (1978), 74 Ill. 2d 203, 384 N.E.2d 368.) Defendant, as the original contractor, owed no duty to third persons under a negligence theory. Defendant argues that duty should be a matter of “public policy” and should be grounded in “fairness.” We do not agree. Duty rests in an obligation imposed by law of which public policy and fairness are consequences, not antecedents. Plaintiffs effort in counts I and V is to counteract the traditional contract limitations on damages by converting the action into one of tort. The trial court properly dismissed counts I and V.
Count II was based upon an admitted agreement between the city of Bloomington and defendant that the city would not prosecute under its building code if defendant made the necessary corrections and repairs. Plaintiff claims to be a third-party beneficiary of this agreement.
The third party to an agreement may not sue on it unless he was the direct and intended beneficiary. (People ex rel. Resnik v. Curtis & Davis, Architects & Planners, Inc. (1980), 78 Ill. 2d 381, 400 N.E.2d 918; Carson Pirie Scott & Co. v. Parrett (1931), 346 Ill. 252, 178 N.E. 498.) Parrett said:
“The rule is, that the right of a third party benefited by a contract to sue thereon rests upon the liability of the promisor, and this liability must affirmatively appear from the language of the instrument when properly interpreted and construed. The liability so appearing can not be extended or enlarged on the ground, alone, that the situation and circumstances of the parties justify or demand further or other liability.” 346 Ill. 252, 258, 178 N.E. 498, 501.
Two propositions militate against plaintiff’s position on this issue. First, we find nothing in the agreement which indicates that plaintiff was anything but a collateral and incidental beneficiary. The purpose of the agreement was to compel compliance with the building code, not to repair plaintiff’s house. Second, the enforcement of laws is not for the benefit of any individual, but for the public at large. (Porter v. City of Urbana (1980), 88 Ill. App. 3d 443, 410 N.E.2d 610.) The trial court was correct in dismissing count II.
Count III sounded in warranty of habitability. This theory is disposed of by the recent decision in Mellander v. Kileen (1980), 86 Ill. App. 3d 213, 407 N.E.2d 1137. Plaintiff asks us to reexamine our position in this matter, and we decline to do so. Plaintiff was a subsequent purchaser, and under the rationale of Mellander the warranty does not run to him. Dismissal of count III was correct.
Count IV alleged fraud: that the defendant never intended to make repairs but plaintiff relied on his promise to the city. In this connection plaintiff relies heavily on Steinberg v. Chicago Medical School (1977), 69 Ill. 2d 320, 371 N.E.2d 634. We find significant differences between the instant case and Steinberg.
Fraud consists in the misrepresentation of a past, or existing, fact, not on a promise to do something in the future. (Polivka v. Worth Dairy, Inc. (1974), 26 Ill. App. 3d 961, 328 N.E.2d 350.) Steinberg indicated an exception when the grounds of the fraud were a scheme or plot, but the representations were of past facts, i.e., the published standards.
Furthermore, the representation must be made to the party who relied upon it to his detriment and injury. (Lincolnland Properties v. Butterworth Apartments (1978), 65 Ill. App. 3d 907, 382 N.E.2d 1250.) Here the statement, or agreement, was made to the city of Bloomington, and any detriment suffered was by the city in its failure by accepting defendant’s promise to enforce its building code. Plaintiff may have relied upon this promise, but if so, he had no right to do so, as we have already discussed above in connection with his third-party-beneficiary theory. Count IV was properly dismissed.
We find count VI to be sufficient to withstand a motion to dismiss. The trial court was incorrect, therefore, in this connection.
Count VI alleges two agreements between the plaintiff and the defendant for the defendant to repair the chimney, fireplace, and outside walls at the defendant’s expense in exchange for the plaintiff’s promise not to sue him. The trial court dismissed this count for want of valid consideration; a promise to forego legal action is consideration and an agreement based on that is enforceable. White v. Walker (1863), 31 Ill. 422; United Factors Division of United Merchants & Manufacturers, Inc. v. Murphy (N.D. Ill. 1971), 345 F. Supp. 768.
The order of the circuit court of McLean County in dismissing counts I, II, III, IV, and V is affirmed. The order insofar as it dismissed count VI is reversed, and the cause is remanded for further proceedings as to count VI.
Affirmed in part, reversed in part, and remanded.
TRAPP, P. J., concurs.