
483 S.E.2d 422 (1997)
Dorothy M. FAULKENBURY, on behalf of herself and all others similarly situated, Plaintiffs,
v.
TEACHERS' AND STATE EMPLOYEES' RETIREMENT SYSTEM OF NORTH CAROLINA, a corporation; Board of Trustees and State Employees' Retirement System of North Carolina, a body politic and corporate; Dennis Ducker, Director of the Retirement System Divisions and Deputy Treasurer of the State of North Carolina (in his official capacity); *423 Harlan E. Boyles, Treasurer of the State of North Carolina and Chairman of the Board of Trustees Teachers' and State Employees' Retirement System of North Carolina (in his official capacity); and State of North Carolina, Defendants.
William H. WOODARD, on behalf of himself and all others similarly situated, Plaintiffs,
v.
NORTH CAROLINA LOCAL GOVERNMENTAL EMPLOYEES' RETIREMENT SYSTEM, a corporation; Board of Trustees of the North Carolina Local Governmental Employees' Retirement System, a body politic and corporate; Dennis Ducker, Director of the Retirement System Divisions and Deputy Treasurer of the State of North Carolina (in his official capacity); Harlan E. Boyles, Treasurer of the State of North Carolina and Chairman of the Board of Trustees of the North Carolina Local Governmental Employees' Retirement System (in his official capacity); State of North Carolina, Defendants.
Bonnie G. PEELE, on behalf of herself and all others similarly situated, Plaintiffs,
v.
TEACHERS' AND STATE EMPLOYEES' RETIREMENT SYSTEM OF NORTH CAROLINA, a corporation; Board of Trustees Teachers' and State Employees' System of North Carolina, a body politic and corporate; Dennis Ducker, Director of the Retirement System Divisions and Deputy Treasurer of the State of North Carolina (in his official capacity); Harlan E. Boyles, Treasurer of the State of North Carolina and Chairman of the Board of Trustees Teachers' and State Employees' Retirement System of North Carolina, (in his official capacity); and State of North Carolina, Defendants.
No. 109PA96.
Supreme Court of North Carolina.
April 11, 1997.
*426 Womble Carlyle Sandridge & Rice by G. Eugene Boyce, Raleigh; Susan McFarlane, Louisburg; and Marvin Schiller, Raleigh, for plaintiff-appellants and -appellees.
Michael F. Easley, Attorney General by Edwin M. Speas, Jr., Senior Deputy Attorney General, and Norma S. Harrell, and Tiare Bowe Smiley, Special Deputy Attorneys General, for defendant-appellants and  appellees.
WEBB, Justice.
The principal question raised by this appeal is whether a change in the law, which reduced plaintiffs' disability retirement payments, violates Article I, Section 10 of the Constitution of the United States, which provides *427 in part: "No state shall ... pass any... law impairing the obligations of contracts." U.S. Const. art. I, § 10. In order to resolve this question, we must first determine whether there was a contract. If there was a contract, we must determine whether the contract was impaired. Finally, we must determine whether the impairment was reasonable and necessary to serve an important public purpose. United States Trust Co. v. New Jersey, 431 U.S. 1, 97 S.Ct. 1505, 52 L.Ed.2d 92 (1977).
The Court of Appeals held and we affirmed in Simpson v. N.C. Local Gov't Employees' Retirement Sys., 88 N.C.App. 218, 363 S.E.2d 90 (1987), aff'd per curiam, 323 N.C. 362, 372 S.E.2d 559 (1988), a case almost on all fours with this case, that the relation between the employees and the governmental units was contractual. Simpson governs this case. At the time the plaintiffs' rights to pensions became vested, the law provided that they would have disability retirement benefits calculated in a certain way. These were rights that they had earned and that may not be taken from them by legislative action.
The defendants argue Simpson is wrong and should be overruled. They say this is so because the statutes upon which the plaintiffs rely are not promises, but only state a policy which the General Assembly may change. We believe that a better analysis is that at the time the plaintiffs started working for the state or local government, the statutes provided what the plaintiffs' compensation in the way of retirement benefits would be. The plaintiffs accepted these offers when they took the jobs. This created a contract.
The defendants next contend that the General Assembly reserved the right to amend the retirement plans for state and local government employees by N.C.G.S. §§ 128-38 and 135-18.4, which provide:
The General Assembly reserves the right at any time and from time to time, and if deemed necessary or appropriate by said General Assembly in order to coordinate with any changes in the benefit and other provisions of the Social Security Act made after January 1, 1955, to modify or amend in whole or in part any or all of the provisions of the ... Retirement System.
N.C.G.S. § 128-38 (1995) (local government employees); N.C.G.S. § 135-18.4 (1995) (state government employees).
The two sections only allow amendments to coordinate the retirement system with the Social Security Act. They have no application to this case.
The defendants, citing cases from other states and legal articles, say the General Assembly did not originally reserve the right to change the retirement benefits because at the time the plans were created, the General Assembly considered retirement benefits to be gratuities. We believe this argument is refuted by the first case in this state, Bridges v. City of Charlotte, 221 N.C. 472, 20 S.E.2d 825 (1942), in which the constitutionality of the Teachers' and State Employees' Retirement Act was challenged. We held that pensions for teachers and state employees were delayed salaries. If they were gratuities, we said, they would run afoul of proscription of special emoluments as provided in our state Constitution.
The defendants argue that there is nothing in the statutes that shows the General Assembly intended to offer the benefits as a part of a contract, and without such an intent, there can be no contract. We believe that when the General Assembly enacted laws which provided for certain benefits to those persons who were to be employed by the state and local governments and who fulfilled certain conditions, this could reasonably be considered by those persons as offers by the state or local government to guarantee the benefits if those persons fulfilled the conditions. When they did so, the contract was formed. For a discussion on the objective and subjective theories in determining the intent to form a contract, see E. Allan Farnsworth, Contracts § 3.6, at 113 (1st ed. 1982).
The defendants contend that the plaintiffs do not have vested rights to disability compensation at the pre-1 July 1982 level because they were not disabled on that date. They say that the plaintiffs' rights to disability retirement benefits did not vest until the *428 plaintiffs were disabled, at which time the benefits had been reduced. We believe a better analysis is that, pursuant to the plaintiffs' contracts, they were promised that if they worked for five years, they would receive certain benefits if they became disabled. The plaintiffs fulfilled this condition. At that time, the plaintiffs' rights to benefits in case they were disabled became vested. The defendants could not then reduce the benefits.
The defendants argue that Griffin v. Board of Comm'rs, 84 N.C.App. 443, 352 S.E.2d 882 (1987), is inconsistent with Simpson and the Court of Appeals' opinion in this case. We agree. So far as Griffin is inconsistent with this case, it is overruled.
The defendants next argue that Simpson has never been considered in equitable distribution cases when determining whether pensions are vested, and pensions are thus marital property. Equitable distribution has no application to this case.
The defendants contend that the power to determine the amount of pension payments is a part of the essential attributes of sovereign power necessary to safeguard the vital interests of the people. These are powers of a state which cannot be "bargained away," say the defendants. A state can normally enter into a financial obligation. United States Trust Co., 431 U.S. at 21, 97 S.Ct. at 1517, 52 L.Ed.2d at 109. The promise to pay pensions does not bargain away a power of the state or local government necessary to protect the vital interests of the people.
The defendants next argue that assuming there were contractual relationships in regard to the pension rights of the plaintiffs, there has not been a showing that the plaintiffs' contractual rights have been impaired. The defendants say this is so because the plaintiffs have received what they reasonably expected from the contracts. Energy Reserves Group, Inc. v. Kansas Power & Light Co., 459 U.S. 400, 103 S.Ct. 697, 74 L.Ed.2d 569 (1983). The defendants say the evidence showed that the plaintiffs did not read the handbooks provided them, which explained their pension rights, and made no inquiries about these rights until they retired. For this reason, say the defendants, the plaintiffs had no particular expectations in regard to disability payments except that they would receive what the pension plan provided for them. The plaintiffs expected to receive what they were promised at the time of vesting. They may not have known the exact amount, but this was their expectation. The contract was substantially impaired when the promised amount was taken from them.
The defendants next argue that the retirement benefits were not the central undertakings of the contracts. They say that the service-retirement benefits were what was bargained for by the plaintiffs, and because the plaintiffs are receiving the equivalent of service-retirement benefits, their rights under the contracts have not been impaired. We disagree. Whatever may have been the central undertaking of the contracts, the retirement benefits were an integral part. The plaintiffs are entitled to have this part enforced.
The defendants next argue that there was no proof that any members of the classes represented by the plaintiffs suffered any impairment of their contracts. We can assume they did so when they received the same treatment as the named plaintiffs.
The defendants next contend that plaintiffs Faulkenbury and Woodard argue that their contract rights arose at the time their rights to pensions were vested. The plaintiffs were vested before 1 July 1982, and, say the defendants, their rights must be determined as of those dates. If this is so, the plaintiffs' rights have not been impaired because they would have received less on the dates of vesting than they would have received on 1 July 1982. Whenever the plaintiffs' pension rights vested, they were entitled to have their rights calculated on 1 July 1982. The state and local governments on that date offered certain things to the plaintiffs, which the plaintiffs accepted by continuing in their employment.
The defendants next contend that when social security payments, cost of living increases, no retirement deductions, and no social security deductions are considered, the *429 plaintiffs are receiving more than any reasonable expectation they had for disability benefits. We disagree. The plaintiffs are entitled to what they bargained for when they accepted employment with the state and local governments. They should not be required to accept a reduction in benefits for other benefits they have received. Nor does it matter that some members of the classes will receive as much or more under the revised plans. They are entitled to receive that for which they bargained.
The defendants next argue that the changes in disability retirement benefits were reasonable and necessary to accomplish an important public purpose. They say that a proper consideration in designing a pension plan is that a disability retirement feature of the plan should not encourage people to take early retirement. The retirement plans under consideration here, say the defendants, have developed to the point that some members of the plan can receive more by taking disability retirement than by continuing to work. The defendants argue that the correct operation of the plan is an important public purpose, which justifies the impairment of the contract. We do not believe that because the pension plan has developed in some ways that were not anticipated when the contract was made, the state or local government is justified in abrogating it. This is not the important public purpose envisioned which justifies the impairment of a contract.
The defendants make an extensive argument in regard to what they say is the superiority of the new plan over the old. We do not pass on the merits of the two plans. We simply hold that the state and local governments cannot impair their contracts with the plaintiffs.
The defendants assigned error to the superior court's holdings that the plaintiffs had been deprived of the equal protection of the law as guaranteed by the Fourteenth Amendment to the Constitution of the United States; that the plaintiffs' property rights had been violated as guaranteed by Article I, Sections 1 and 19 of the North Carolina Constitution; and that the plaintiffs' rights under Article I, Section 5 of the North Carolina Constitution had been violated. Our holding that the Contract Clause has been violated is sufficient to determine the case. We do not consider these assignments of error.
The defendants next argue that the superior court was in error in holding that the applicable statutes of limitations are found in N.C.G.S. § 128-27(i) and N.C.G.S. § 135-5(n). These two sections contain identical provisions, which provide:
No action shall be commenced against the State or the Retirement System by any retired member or beneficiary respecting any deficiency in the payment of benefits more than three years after such deficient payment was made, and no action shall be commenced by the State or the Retirement System against any retired member or former member or beneficiary respecting any overpayment of benefits or contributions more than three years after such overpayment was made.
N.C.G.S. § 128-27(i) (1995) (local government employees); N.C.G.S. § 135-5(n) (1995) (state government employees). The defendants say the deficiencies contemplated by the two sections are not what we have in this case. They say that a deficiency is a payment which is deficient because of a mathematical error or a mistake in cutting a check. They say that the plaintiffs are not suffering from a continuing wrong. If there was a wrong, say the defendants, it occurred when the plaintiffs retired and were paid less than they would have been paid under the system which had been in effect. This was not a continuing wrong, say the defendants, and the statute of limitations contained at N.C.G.S. § 1-52(5) bars all the plaintiffs who have retired because of disability more than three years before they began an action to challenge the changes in disability retirement.
We do not read this section as do the defendants. We believe that the reductions in payments under the new systems were deficiencies which have continued to the present time. N.C.G.S. § 128-27(i) and N.C.G.S. § 135-5(n) apply in this case, and they allow the plaintiffs to pursue claims for *430 underpayments for three years before they commenced actions.
The defendants next say it was error for the superior court to allow the plaintiffs to recover the actuarial equivalent of the underpayments. The court did this pursuant to N.C.G.S. § 128-32 and N.C.G.S. § 135-10, which have virtually identical provisions as follows:
Should any change or error in the records result in any member or beneficiary receiving from the Retirement System more or less than he would have been entitled to receive had the records been correct, the Board of Trustees shall correct such error, and as far as practicable, shall adjust the payment in such a manner that the actuarial equivalent of the benefit to which such member or beneficiary was correctly entitled shall be paid.
N.C.G.S. § 128-32 (1995) (local government employees); N.C.G.S. § 135-10 (1995) (state government employees). The defendants argue that these sections apply only if there is a change or error in the records and that there is neither in this case. For this reason, say the defendants, the plaintiffs are not entitled to the actuarial equivalents of the underpayments.
We believe these sections show it was the intent of the General Assembly that if there was an underpayment of a pension compensation, it would be paid at the actuarial value. It was not error for the superior court to require such payment.
The defendants next argue that it was error to require them to pay interest on the underpayments. They say that the state and local governments have sovereign immunity which prevents them from being liable for interest. Attorney General v. Cape Fear Navigation Co., 37 N.C. 444 (1843). We disagree. Insofar as the state and local governments have sovereign immunity, it was waived by N.C.G.S. § 135-1(2), which defines actuarial equivalent as "a benefit of equal value when computed upon the basis of such mortality tables as shall be adopted by the Board of Trustees, and regular interest," N.C.G.S. § 135-1(2) (1995), and by N.C.G.S. § 128-21(2), which provides, "`Actuarial equivalent' shall mean a benefit of equal value when computed at regular interest upon the basis of such mortality tables as shall be adopted by the Board of Trustees," N.C.G.S. § 128-21(2) (1995). These sections plainly say that actuarial value includes interest. The plaintiffs are entitled to the actuarial value of underpayments, which includes interest.
The defendants next argue that the remedy fashioned by the superior court is too broad. In a conclusion of law, the court held that the plaintiffs are entitled to interest and the actuarial equivalent of their underpayments in accordance with N.C.G.S. § 135-10 and N.C.G.S. § 128-32. The court also held that pursuant to N.C.G.S. § 135-5(n) and N.C.G.S. § 128-27(i), the plaintiffs "are entitled to receive past underpayments, the actuarial equivalent thereof and interest."
The defendants say that allowing recompense under all these sections gives the plaintiffs double recovery. They say that the payment of underpayments at their actuarial equivalent will fully compensate the plaintiffs and that the plaintiffs should not be paid interest. We disagree.
In allowing interest, the court was following the definition of actuarial equivalent prescribed by N.C.G.S. § 128-21(2) and N.C.G.S. § 135-1(2). There is no double recovery.
The defendants next argue that it was error for the court to order that the defendants pay into a common fund all past deficiencies in payments of monthly benefits which occurred within three years of the dates the class actions were filed. The common-fund doctrine is based on an exception to the general rule that attorneys' fees may not be awarded to the prevailing party without statutory authority. The doctrine allows a court in its equitable jurisdiction to order attorneys' fees "to a litigant who at his own expense has maintained a successful suit for the preservation, protection, or increase of a common fund or of common property, or who has created at his own expense or brought into court a fund which others may share with him." Horner v. Chamber of Commerce, 236 N.C. 96, 97-98, 72 S.E.2d 21, 22 *431 (1952); see also Raleigh-Durham Airport Auth. v. Howard, 88 N.C.App. 207, 363 S.E.2d 184 (1987), disc. rev. denied, 322 N.C. 113, 367 S.E.2d 916 (1988).
The defendants contend this is not a case in which the common-fund doctrine should be applied. They say that the plaintiffs' claims consist of individual benefit payments and are not for group damages in which there can be a lump-sum award. We believe the defendants have misapprehended the common-fund doctrine. Although the words "common fund" are used, the purpose of the doctrine is to allow the court to award attorneys' fees to a litigant who has gained an advantage for other persons similarly situated. The plaintiffs have done so in this case, and the court properly ordered the defendants to pay into the common-fund.
The defendants next argue that it was error for the court to grant the plaintiffs' motion for class certification and to deny the defendants' motion for decertification after the trial. N.C.G.S. § 1A-1, Rule 23(a) provides for class actions. In Crow v. Citicorp Acceptance Co., 319 N.C. 274, 354 S.E.2d 459 (1987), we held "that a `class' exists under Rule 23 when the named and unnamed members each have an interest in either the same issue of law or of fact, and that issue predominates over issues affecting only individual class members." Id. at 280, 354 S.E.2d at 464. Other prerequisites for bringing a class action are that (1) the named representatives must establish that they will fairly and adequately represent the interests of all members of the class; (2) there must be no conflict of interest between the named representatives and members of the class; (3) the named representatives must have a genuine personal interest, not a mere technical interest, in the outcome of the case; (4) class representatives within this jurisdiction will adequately represent members outside the state; (5) class members are so numerous that it is impractical to bring them all before the court; and (6) adequate notice must be given to all members of the class. If the prerequisites for a class action are established, it is within the discretion of the trial court as to whether the matter may proceed as a class action. Id. at 282-84, 354 S.E.2d at 465-66.
The court found facts in each case which justified the establishment of a class action. It ordered that a class be established in each case. The court designated as members of the class all persons who were receiving disability benefits in a lesser amount than they would have received had the law not been changed; persons who retired on service retirement who could have retired on disability retirement at higher rates if the law had not been changed; living beneficiaries of deceased disability retirees who if living would receive less in retirement payments than they would have received if the law had not been changed; all living heirs, beneficiaries, or personal representatives of any estate of one who was receiving less as a disability retiree than he would have received if the law had not been changed and who had not selected a designated survivor beneficiary; and all living heirs, beneficiaries, or personal representatives of the estate of a deceased survivor beneficiary who was receiving benefits pursuant to the election of an option by a deceased disability retiree.
Each of the parties had a claim based on what he or she contends is underpayment of retirement benefits. This claim predominates over issues affecting only individual class members in this case. This establishes a class.
The defendants contend the prerequisites to bringing a class action do not exist in this case. They say there are serious questions concerning the standing and adequacy of the named plaintiffs to represent the class. They say Faulkenbury and Woodard's claims are barred by the statute of limitations, which means they cannot represent their classes. We have held their claims are not barred by the statute of limitations.
The defendants argue that the members of the classes who are not receiving disability retirement, such as the heirs of deceased retirees, have different interests from the named plaintiffs. The interest of the plaintiffs named and unnamed is to recover what they can for what they contend is underpayment of retirement benefits. This is an issue which defines the class.
Finally, the defendants argue that the members of the potential class will receive *432 recoveries in different amounts. For this reason, say the defendants, the class members' claims must be examined to determine what offsetting advantages cancel out disadvantages, what difference in benefits might exist, and whether the change in benefits changes the central understanding of the parties. All these are collateral issues in this case. The predominate issue is how much the parties' retirement benefits were reduced by an unconstitutional change in the law. This issue defines the class.
The plaintiffs appeal from the court's refusal to extend the class certifications to members of the two retirement systems who become disabled in the future. They say that unless they are included, they will receive less when they retire on disability than will the members of the classes certified in this case.
The trial court has broad discretion in determining whether a case should proceed as a class action. Id. at 284, 354 S.E.2d at 466. We have no reason to believe the defendants will not follow the law as we have delineated it in this opinion in pension payments to future disability retirees. We cannot hold that the court abused its discretion in refusing to certify a class whose members are unknown at this time.
The judgment of the superior court is affirmed, and the case is remanded to the Superior Court, Wake County, for further proceedings.
AFFIRMED.
