
263 S.E.2d 323 (1980)
TWIN CITY APARTMENTS, INC.
v.
Maralyn LANDRUM (Whedbee).
No. 7921DC601.
Court of Appeals of North Carolina.
March 4, 1980.
*324 James T. Lambie, Winston-Salem, for plaintiff-appellee.
Rosbon D. B. Whedbee, Ahoskie, for defendant-appellant.
HILL, Judge.
The defendant contends the trial judge erred in denying the defendant's motion to dismiss this suit on the grounds that the instant action for summary ejectment must be brought as a compulsory counterclaim, pursuant to G.S. 1A-1, Rule 13(a), in the pending Hertford County action. Rule 13(a) states that,
A pleading shall state as a counterclaim any claim which at the time of serving the pleading the pleader has against any opposing party, if it arises out of the transaction or occurrence that is the subject matter of the opposing party's claim and does not require for its adjudication the presence of third parties of whom the court cannot acquire jurisdiction.
The trial judge in the instant case found as fact that the case was filed 6 June 1978 in the Small Claims Court of Forsyth County; that on or about 1 May 1978, the defendant filed as a co-plaintiff with her husband a cause of action in Hertford County against the plaintiff, covering inter alia subject matters arising out of the same transaction and occurrence as gave rise to the instant case and alleging that Barbara Horrell, the resident manager of the Village Apartments Complex, owned by the Twin City Apartments did breach the terms of the lease for personal reasons and as a personal vendetta against Maralyn Landrum Whedbee. The complaint further alleged breach of rental contract and covenants of the leasehold; breach of covenants of fitness for habitability and of the duty of repair; violations of G.S. 75-1.1 and a civil conspiracy to deprive the said Maralyn Landrum Whedbee of her civil rights prescribed by 42 U.S.C. § 1983, et seq. The Hertford County action is still pending. The judge in the Forsyth County action then concluded that the Forsyth County action for summary ejectment was not an action which plaintiff, defendant in the Hertford County action, was compelled to bring pursuant to the requirements of G.S. 1A-1, Rule 13(a). The court thereupon dismissed the motion of defendant Maralyn Landrum Whedbee as to compulsory counterclaim.
*325 An examination of the findings of fact by the trial judge reveals that defendant's Hertford County action is completely distinct from an action for summary ejectment, the case sub judice. Both defendant's Hertford County action and plaintiff's action for summary ejectment arise from a common relationship between the parties. Both parties' claims originate from plaintiff's request that defendant vacate the apartment and defendant's refusal. This common origin is not enough, however, to require that plaintiff's summary ejectment action be designated a compulsory counterclaim in defendant's Hertford County action. The nature of the actions and the remedies sought are too divergent. In fact, it is the similarity in the nature of the action and the remedy sought which seems to be more important in establishing when an action will be treated as a compulsory counterclaim, rather than a basis in a common factual transaction.
Hy-Way Heat Systems, Inc. v. Jadair, Inc., 311 F.Supp. 454 (E.D.Wis.1970), involved an action for patent infringement and for unfair competition. Defendant answered and counterclaimed, making allegations based on common law questions of unfair competition which would normally be tried in state court. The federal court claimed jurisdiction on the basis of Rule 13(a), saying that the counterclaim was compulsory. In making its findings, the court seemed to rely not so much on a logical relationship between the factual backgrounds of the two claims, but the fact that, "[b]oth claims deal[t] with misrepresentation. . .." In effect, the similar nature of the actions was determinative.
Manufacturing Co. v. Manufacturing Co., 30 N.C.App. 97, 100, 226 S.E.2d 173, disc. review granted on other grounds 290 N.C. 662, 228 S.E.2d 454 (1976), is a similar case. There, a manufacturer had charged another company with unfair trade practices. Several months later the second company filed an action against the first for unfair trade practices in another superior court. Both claims arose out of the manufacturers' claim regarding a purportedly unique device their respective tobacco harvesting machines carried. This Court recognized the logical relationship between the factual backgrounds of the two claims, but went one step further. The Court, citing from Hy-Way, supra, stated that "`.. . [b]oth claims deal with misrepresentation of the defendants' products . . ..'" The second action was held to be a compulsory counterclaim in the original.
In order to find that an action must be filed as a compulsory counterclaim pursuant to G.S. 1A-1, Rule 13(a), a court must first find a logical relationship between the factual backgrounds of the two claims. In addition, the court must find a logical relationship between the nature of the actions. Rule 13(a) is a tool designed to further judicial economy. The tool should not be used to combine actions that, despite their origin in a common factual background, have no logical relationship to each other. Defendant's first assignment of error is overruled.
Defendant next contends that the summary ejectment procedure as set out in G.S. 42-26(1) and G.S. 42-32, is unconstitutional. Defendant argues first that G.S. 42-26(1) provides no defense whatsoever to a residential tenant of commercially owned property who holds over, after being given notice that the term has expired or that the owner desires possession. Secondly, defendant argues that the North Carolina law discriminates against lower and lower middle income persons who are compelled to rent because of economic inability to purchase suitable residential premises. The trial court concluded the statute to be constitutionally valid. We agree.
The parties executed a written lease. Defendant was not deprived of any vested right. In fact, the lease protected her rights. Plaintiff had superior title in the property, and the lease guaranteed defendant's quiet enjoyment during the term of the lease. Defendant had no right to possession once the lease expired and plaintiff gave proper notice to vacate.
G.S. 42-26(1) provides no defense because none exists. Once the estate of the lessee *326 expires, the lessor, by virtue of his superior title, may resume possession by following proper procedures. Defendant's right to possession is protected by virtue of G.S. 42-35 and G.S. 42-36, which provide a remedy to the tenant if he is evicted, but later restored to possession.
Defendant further argues that G.S. 42-26(1) and G.S. 42-32 are unconstitutional because they discriminate against lower and lower middle income persons.
A person who is not included in the class against which there has been a discrimination cannot take advantage of the discrimination by pleading that the proceeding constitutes a violation of the equal protection guaranteed by the Fourteenth Amendment of the Constitution of the United States, and by Section 17, Article I, of the Constitution of North Carolina.
State v. Sims, 213 N.C. 590, 591, 197 S.E. 176, 177 (1938). Defendant has not exhibited that she is a member of the allegedly injured classes. In fact, in defendant's appellate brief the statement is made that, ". . . defendant falls only within the class of the general public at large ..." Defendant has no standing to attack the statutes on the basis of denial of equal protection. Defendant's second assignment of error is overruled.
We have examined defendant's third assignment of error and find it to be without merit. Defendant's lease ran from month to month pursuant to the same terms as her original six-month lease. The original lease provided for eviction for certain objectionable conduct, none of which was done by defendant. This does not preclude the landlord from ejecting tenant, pursuant to the proper procedures, at the end of the lease term. The lease provisions in the instant case were designed to give plaintiff a remedy during the lease term and were not meant to limit his right to reassert his superior title.
The judgment of the trial court is
Affirmed.
MORRIS, C. J., and HARRY C. MARTIN, J., concur.
