The plaintiff brought this action to recover upon a promissory note executed by the defendants, and payable to the plaintiff. The defendants in their answer admit the execution and delivery of the note and nonpayment thereof. By way of defense and counterclaim they aver that the plaintiff has been engaged in business at Jamestown, under the name of Strong Land Company, and that during-July, 1914, the defendants purchased “from said plaintiff, and one B. B. Lowe, and the said Strong Land Company, some land located in the island of Cuba;” that in payment of said land the defendants traded and delivered to the plaintiff and his said company a stock of shoes; that in consideration of said stock of shoes the defendants were to have title and deed to said Cuban land; that plaintiff and his company were *387not only to deed said land to defendants, bnt were to make a satisfactory showing that the party from whom the land was deeded had a good and merchantable title thereto; that defendants delivered the stock of shoes to plaintiff and his company, upon such promises and agreements; that the stock of shoes was of the agreed value of $920; that the defendant and his company failed to deliver the deed or other instrument of conveyance; that the plaintiff and his company had no title to the land and are unable to convey any good title thereto whatsoever; that by reason of such false and fraudulent representations on the part of the plaintiff and the land company, its agents, and representatives, the defendants were induced to part with their said shoe stock, and turned the same over to the plaintiff, his company, agents, and representatives. Wherefore defendants ask for recoupment against the amount of plaintiff’s claim, to the amount of $920, the value of such stock of shoes. The plaintiff demurred to the answer on the grounds: (1) That the same does not state facts to constitute a defense or counterclaim to the cause of action set forth in the complaint; (2) that defendants have attempted to plead an alleged tort as a counterclaim to an action upon contract. These were the only grounds on which the demurrer was based, and hence are the only ones which we shall consider. 3 C. J. p. 791, § 714.
Under our statute a counterclaim “must be one existing in favor of a defendant and against a plaintiff between whom a several judgment might be had in the action, and arising out of one of the following causes of action:
“1. A cause of action arising out of the contract or transaction set forth in the complaint as the foundation of the plaintiff’s claim, or connected with the subject of the action.
“2. In an action arising on contract, any other cause of action arising also on contract and existing at the commencement of the action.” Comp. Laws 1913, § 7449.
The counterclaim sought to be set up by defendants in this case did not arise out of the transaction set forth in the complaint as the foundation of plaintiff’s claim, nor was it connected therewith. It arose out of a wholly independent transaction. The question is therefore whether the answer sets forth a cause of action arising on contract and existing at the commencement of the action. In our opinion it does. It does not state a cause of action for deceit. The only representations set *388•forth are promises or agreements to convey a good, merchantable title in certain land to the defendants. The answer is by no means a model pleading, but it does allege that plaintiff has been doing business under the name of Strong Land Company; that defendants turned over to plaintiff a stock of shoes of an agreed value of $920, in consideration of which it was agreed that defendants were to receive a deed conveying good and merchantable title to certain land, and that plaintiff has failed to comply with the agreement under which he received the stock of shoes. It is well settled that where the consideration for a contract for the purchase of land fails, the law implies an obligation on the part of one who has received the purchase price to make restitution to the party from whom he received it. Laflin v. Howe, 112 Ill. 253 ; Wright v. Dickinson, 67 Mich. 580, 11 Am. St. Rep. 602, 35 N. W. 161; Leach v. Tilton, 10 N. H. 173.
The answer alleges an agreement between the plaintiff and the defendants, the payment to plaintiff of the full consideration agreed upon, and that the reciprocal consideration moving to the defendants has wholly failed. The relief demanded is that defendants be awarded the value of the goods delivered by them to the plaintiff as the purchase price of land, which they did not receive, and to which plaintiff has no title. The allegations of a pleading must be liberally construed with a view of substantial justice between the parties. Comp. Laws 1913, § 7158. When so construed, the answer in this case is sufficient, and states “a cause of action arising on contract and existing at the commencement of the action.” It was therefore error to sustain the demurrer upon either of the grounds urged by the plaintiff. The judgment appealed from must be reversed. Eeversed and remanded for further proceedings according to law.