
394 A.2d 264 (1978)
Wayne R. McNICHOLAS et al.
v.
YORK BEACH VILLAGE CORPORATION.
Supreme Judicial Court of Maine.
November 15, 1978.
*265 McEachern, Winiarski & Thornhill, by Dan W. Thornhill, Kittery (orally), for plaintiffs.
David N. Ott, York (orally), for defendant.
Before POMEROY, WERNICK, ARCHIBALD, DELAHANTY, GODFREY and NICHOLS, JJ.
*266 NICHOLS, Justice.
This appeal by the three Plaintiffs in a proceeding for a declaratory judgment challenges the constitutionality of Chapter XXVI, § 1 of the ordinances of the York Beach Village Corporation.[1] That ordinance regulates scuba diving, skin diving and snorkeling in Sohier Park, which it appears the corporation had acquired in the exercise of its governmental powers. The Superior Court in York County upheld the ordinance following a jury-waived trial, and ordered judgment for the Defendant. The Plaintiffs have appealed.
For reasons discussed below, we do not reach the question of the constitutionality of the ordinance itself. We do conclude, however, that the $25.00 permit fee imposed pursuant to the ordinance upon divers, while no fees are imposed upon other users of the park, is unconstitutional as violative of the equal protection clause. We therefore sustain, in part, the appeals of the Plaintiffs McNicholas and Wyman. We dismiss the appeal of Plaintiff Arnstein for lack of standing.

I.
We are confronted at the threshold with the question of standing. By now, it is, or at least should be, familiar law that the standing of a plaintiff to maintain his action may be, and often is, raised by the court on its own motion for the first time at the appellate level. E. g., Heald v. School Administrative District No. 74, Me., 387 A.2d 1 (1978); Fitzgerald v. Baxter State Park Authority, Me., 385 A.2d 189 (1978).
The question we face here is whether standing is a matter of pleading, or whether a plaintiff must not only plead but also prove the facts which give him standing to either bring an action or to prosecute an appeal.[2]
This action was commenced by three Plaintiffs, Wayne McNicholas, Rachel Wyman, and Joseph Arnstein. Their complaint alleged, in part, that each was a scuba diver who utilized Sohier Park for that purpose prior to the enactment of the ordinance, and that they had been "deprived of the use *267 of Sohier Park . . . since the adoption of said Ordinance. . . ." These allegations, that they were members of a limited class discriminated against by the ordinance, were sufficient under our cases to give them standing to challenge the ordinance in the trial court. See Fitzgerald v. Baxter State Park Authority, supra, 385 A.2d at 197 (1978).
The Defendant, York Beach Village Corporation, in its answer, neither admitted nor denied those allegations, and that, under our rules, constituted a denial thereof. M.R.Civ.P. 8(b). At trial, Plaintiffs McNicholas and Wyman testified that they were in fact divers who utilized the park prior to enactment of the ordinance; the Defendant did not challenge this testimony in any way. However, Plaintiff Arnstein never testified at the trial nor is there any other evidence in the record which remotely suggests that he was affected by the ordinance in any way.
Nevertheless, Plaintiff Arnstein purports to appeal from the judgment of the Superior Court. We hold that he is without standing to do so, and that his lack of standing goes to the very jurisdiction of this court to hear his appeal. Walsh v. City of Brewer, Me., 315 A.2d 200 (1974).
The jurisdictional statute covering appeals to the Law Court, 14 M.R.S.A. § 1851, requires that the appellant be aggrieved by the judgment or order appealed from.[3]
For aggrievance by a judgment or order, such judgment or order must operate prejudicially and directly upon a party's property, pecuniary or personal rights.
Jamison v. Shepard, Me., 270 A.2d 861, 862-863 (1970). See also Desmond v. Persina, Me., 381 A.2d 633, 637-639 (1978), 2 Field, McKusick & Wroth, Maine Civil Practice, § 72.2a (1977 Supp.). Where, as here, the rights asserted are those of named Plaintiffs, we hold that the facts giving rise to the right to challenge a law operating against those rights must not only be pleaded, but must also be proved.[4] See 222 East Chestnut Street Corp. v. Board of Appeals of City of Chicago, 14 Ill.2d 190, 152 N.E.2d 465 (1958), Haines v. Rural High School Dist. No. 3, 171 Kan. 271, 232 P.2d 437 (1951).
Although the allegations of the complaint gave Plaintiff Arnstein standing to challenge the ordinance in the trial court, his failure to appear at trial or otherwise prove he was affected by the ordinance caused him to lose the right to appeal to this court.[5] His appeal must therefore be dismissed.

II(a)
We now proceed to determine the issues appropriately raised by the appeals of Plaintiffs McNicholas and Wyman. Their appeals purport to challenge the constitutionality of the entire ordinance, at least insofar as it distinguishes between divers and other users of the park. However, we conclude that the only issue before us is the constitutionality of the $25.00 annual permit fee imposed upon divers. That fee is not part of the ordinance, but rather is set pursuant to section 1(B) of the ordinance by the municipal corporation's Board of Overseers.
At common law, declaratory relief was generally unavailable but Maine's adoption of the Uniform Declaratory Judgment Act, 14 M.R.S.A. § 5951 et seq., offered a new procedural vehicle to invoke the judicial machinery in an otherwise proper case. However, in order to obtain declaratory *268 relief, compliance with the statute is necessary.
One provision of the Act, 14 M.R.S.A. § 5963, provides, in part, as follows:
. . . In any proceeding which involves the validity of a municipal ordinance, such municipality shall be made a party and shall be entitled to be heard, and if the statute, ordinance or franchise is alleged to be unconstitutional, the Attorney General shall be served with a copy of proceeding and be entitled to be heard. (Emphasis added).
It is apparent from the record that the Plaintiffs did not comply with the requirement of service upon the Attorney General. We have previously suggested the necessity of complying with this statute as a prerequisite to a constitutional challenge by means of a declaratory judgment action. See Ace Tire Co., Inc. v. Municipal Officers of Waterville, Me., 302 A.2d 90, 94 (1973). Most courts construing the Uniform Act have held that failure to serve the Attorney General is a jurisdictional defect. E. g., Sendak v. Debro, Ind., 343 N.E.2d 779 (1976), Lawrence v. Gayle, 294 Ala. 91, 312 So.2d 385 (1975), McCabe v. City of Milwaukee, 53 Wis.2d 34, 191 N.W.2d 926, 927 (1971) (and cases cited therein). Other courts have adopted a more flexible approach. Wichita County v. Robinson, 155 Tex. 1, 276 S.W.2d 509 (1955), Mayo v. National Truck Brokers, Inc., 220 So.2d 11 (Fla.1969), Leonard v. City of Seattle, 81 Wash.2d 479, 503 P.2d 741 (1972).
We need not here choose between competing views on the effect of failure to serve the Attorney General, for we find another basis to limit our inquiry solely to the constitutionality of a $25.00 permit fee imposed upon divers, while no fee is imposed upon any other users of the park. During trial, the following colloquy occurred:
The Court: . . . (T)he only issue before this Court, is whether or not the requirement of a $25.00 license fee is unconstitutional for the privilege of snorkling [sic] and scuba diving and skin diving. Isn't that right?
[Counsel for the
Plaintiffs]: That's correct, your honor.
Since we can adjudicate the validity of the $25.00 fee without calling into question the constitutionality of the ordinance itself (cf. Board of Com'rs. of Newton County v. Allgood, 234 Ga. 9, 214 S.E.2d 522, 528 (1975)), we prefer to adopt that course in light of the Plaintiff's express disavowal of any interest in challenging the other regulatory aspects of the ordinance.[6] Principles of sound appellate practice make us extremely reluctant to grant relief except on the basis of what was argued and decided in the court below. See National Advertising Company v. Inhabitants of Town of York, Me., 345 A.2d 512, 514 (1975). Since the above-quoted colloquy appears to limit the relief requested in the court below to an adjudication of the validity of the $25.00 permit fee, we will likewise limit our inquiry to that issue.[7]

II(b)
The standard by which we review an asserted violation of the equal protection clause is well established.
Unless a classification trammels fundamental personal rights or is drawn upon inherently suspect distinctions . . ., our decisions presume the constitutionality of the statutory discriminations and require only that the classification challenged be rationally related to a legitimate state interest.
New Orleans v. Dukes, 427 U.S. 297, 303, 96 S.Ct. 2513, 2516, 49 L.Ed.2d 511, 517 (1976).
*269 Since the Plaintiffs do not contend that their activities as divers involve either a fundamental right or a suspect classification, their claim of discrimination must be judged by the rational basis test. This inquiry employs a relatively relaxed standard reflecting the judiciary's awareness that the drawing of lines that create distinctions is peculiarly a legislative task and an unavoidable one. Massachusetts Board of Retirement v. Murgia, 427 U.S. 307, 314, 96 S.Ct. 2562, 2567, 49 L.Ed.2d 520, 525 (1975).
Generally speaking, a legislative classification will not be violative of equal protection if facts may be reasonably conceived to justify the distinction. Union Mutual Life Insurance Company v. Emerson, Me., 345 A.2d 504, 507 (1975). Nevertheless, the presumption of validity is not absolute. See, e. g., Buck v. Kilgore, Me., 298 A.2d 107, 111 (1972).
That one group is required to pay more than another group for the same privilege is not in of itself a violation of equal protection. In Baldwin v. Fish and Game Commission of Montana, 436 U.S. 371, 98 S.Ct. 1852, 56 L.Ed.2d 354 (1978), the Supreme Court upheld, against an equal protection challenge, a statutory scheme whereby state residents could purchase an elk hunting license for as little as $9.00 but non-residents were required to purchase a combination license costing $225.00 in order to hunt elk. The Court found no irrationality in the disparity, because the legislative choice was a means not unreasonably related to the preservation of a finite resource and a substantial regulatory interest of the State. The Court noted, "We perceive no duty on the State . . . to justify to the penny any cost differential it imposes in a purely recreational, noncommercial, nonlivelihood setting." 436 U.S. at 371, 98 S.Ct. at 1864.
Similarly, legislation which provides governmental benefits to some but not to others is not necessarily violative of equal protection. See State v. National Advertising Company, Me., 387 A.2d 745 (1978).
Nevertheless, there must be some rational basis for the difference in treatment. In Ace Tire Co., Inc. v. Municipal Officers of Waterville, Me., 302 A.2d 90 (1973), this court struck down, on equal protection grounds, that part of a statutory scheme which required a $500.00 permit fee from junkyards within 100 feet of a highway, while junkyards farther away were subject to a fee of only $10.00. We there held that the discrimination was unwarranted and arbitrary, and bore no rational relationship to the admittedly legitimate purposes of the statute, since the costs of regulating junkyards did not vary according to their distance from the highway.
The Defendant argues that Ace Tire supports its argument that there is no equal protection violation in the case at bar because all divers are treated alike, thus distinguishing the situation in Ace Tire, where different junkyards were treated differently.
We conclude that Ace Tire does control here, yet that conclusion brings us to a result contrary to the Defendant's position. Even assuming, as we do, that regulation of divers but no other park users is a rational distinction, the $25.00 permit fee imposed solely upon divers is so disproportionate as to lose any rational connection to a legitimate governmental purpose. To cite an extreme example, a diver who utilizes the park once a year must pay the fee, but a tour bus operator who brings in bus loads of sightseers daily pays nothing.
The limitations imposed by the equal protection clause upon the legislative power to classify apply not only to the fact of discrimination but also to the manner of discrimination between legislatively created classes. In Ace Tire, the $500.00 permit fee was not struck down merely because junkyards farther than 100 feet from the highway were treated differently than those closer to the highway. We expressly upheld that same classification with regard to differences in screening requirements. In view of the legislative purpose of furthering highway safety,

*270 (s)creening as provided by the statute effects the intended purpose, which could only be to protect the traveling public from the false appearance to some drivers of a crowded highway or an accident scene, which clouded horizon, by reason of reflex action, could lead to erratic driving and accidental collisions.
Ace Tire v. Municipal Officers of Waterville, supra, 302 A.2d at 100. The basis of any such distinctions must be the rational relationship between a legitimate governmental purpose and the manner chosen to effect the distinction. Here, the Defendant has not shown us any legitimate governmental purpose to justify the difference.[8] That the activities subject to the permit are more in the nature of a hobby or an avocation than a business or profession[9] may be a relevant consideration in determining the rationality of the classification, but that factor alone is not controlling.
The Defendant's reliance upon Murphy v. California, 225 U.S. 623, 32 S.Ct. 697, 56 L.Ed. 1229 (1912) is also misplaced. In its equal protection aspect, Murphy merely held that an ordinance prohibiting billiard halls, which contained an exemption for hotels with 25 or more rooms maintaining a billiard room solely for hotel guests, did not render the ordinance invalid under the equal protection clause.
In sum, we do not hold that the Defendant may not account for rational distinctions between divers and other users of the park. We do not hold that $25.00 is per se an unconstitutional amount to charge for a permit to dive. However, this substantial fee imposed solely upon divers, while no fees whatsoever are imposed upon other park users, does not have a rational basis. It must therefore be struck down as violative of the equal protection clause.
The entry is:
Appeal of Plaintiff Arnstein dismissed with costs. Appeals of Plaintiffs McNicholas and Wyman sustained in part; remanded to Superior Court for entry of judgment that the $25.00 annual permit fee imposed pursuant to Ch. XXVI, § 1(B) of the ordinances of the York Beach Village Corporation upon divers using Sohier Park is unconstitutional.
McKUSICK, C. J., did not sit.
NOTES
[1]  CHAPTER XXVI Sohier Park

Section 1. Scuba and Skin Diving
A. No person, within the limits of the park property, shall engage in, participate in, conduct or carry on any so-called scuba or skin diving or snorkeling activities on Sundays and State of Maine and National Holidays from the first Sunday in April to the last Sunday in October inclusive.
B. A permit is required from the Corporation Manager or his agent at all other times. Permit fees and number of participants are to be established by the Board of Overseers.
C. No person, within the limits of the park property shall fill or recharge, by any means whatsoever, any so-called air tanks, scuba or skin diving apparatus for containing or storing of air, oxygen, or other gases under pressure for breathing apparatuses or propulsion apparatuses at any time.
Section 2. Dogs
No dogs are allowed in the park except confined to motor vehicles or on a leash.
Section 3. Parking
A. No parking from 1:00 A.M. to 5:00 A.M., current time.
B. Parking shall only be in designated areas.
Section 4. Alcoholic Beverages
No person shall at any time, within the limits of Sohier Park, be in possession of any open container of any alcoholic beverage. Any bottle or can of alcoholic beverage with the seal broken shall be considered as open container for the purpose of this ordinance.
Section 5. Rubbish
No rubbish shall be deposited in the park except in containers provided.
Section 6. Liability
A. The York Beach Village Corporation and or the Sohier Park Committee assumes no liability for any personal accident within the boundaries of the park.
B. Sohier Park is established and controlled by the Overseers of the York Beach Village Corporation and any committee the Overseers may appoint.
Section 7. Penalty
Any person violating any of the provisions of the Ordinance shall be punished by a fine of not less than Fifty ($50.00) Dollars and not more than One Hundred ($100.00) Dollars for each offense, if convicted, and said penalty to be recovered for the use of the Corporation.
Section 8. Severability
The invalidity of any section or provision of this Ordinance shall not invalidate any other section or provision thereof.
[2]  The case at bar, since it involved a full trial, does not present the question of how a purported appellant can prove himself a "person aggrieved" without an evidentiary hearing. See In Re Belgrade Shores, Inc., Me., 371 A.2d 413, n. 2 (1977).
[3]  This statute, governing who may appeal, is to be distinguished from 4 M.R.S.A. § 57, another jurisdictional statute, which governs the types of cases we may hear. Cf. In Re Adoption of Bragg, Me., 384 A.2d 435 (1978).
[4]  We have no occasion here to address, and we therefore suggest no opinion on whether the same rule would necessarily apply to all members of a class in a class action proceeding under M.R.Civ.P. 23.
[5]  Although the parties to a suit may not stipulate to the court's jurisdiction when there is in fact none, nothing in this opinion is intended to prevent factual stipulations which demonstrate a plaintiff's standing. See Fitzgerald v. Baxter State Park Authority, supra, 385 A.2d at 197.
[6]  Plaintiff's counsel also stated to the court that "we have no objection at all" to part of the ordinance which prohibits the filling or recharging of air tanks on park property.
[7]  Courts have upheld regulations pertaining to shore and beach usage against constitutional challenges in several contexts. Williams v. Kleppe, 539 F.2d 803 (1st Cir. 1976) (nude bathing), MacDonald v. Newsome, 437 F.Supp. 796 (E.D.N.C.1977) (surfing); but cf. Arabia v. Zisman, 143 N.J.Super. 168, 362 A.2d 1221, aff'd 157 N.J.Super. 335, 384 A.2d 1110 (1978) (beach chair rentals).
[8]  Whether the Defendant could prohibit by direct regulation what it cannot do by means of a discriminatory license fee is a question we need not here address.
[9]  There was evidence before the court below that Plaintiff McNicholas, as part of his activities as a diving instructor, brought his students to Sohier Park prior to the enactment of the ordinance.
