The errors assigned on this appeal are the overruling the demurrer to the bill of complaint, and the rendition of the final decree against appellant.
After the demurrer to the bill as originally filed was overruled, complainant amended by adding a paragraph to the bill, alleging that the defendant gas company was exercising its franchises aud privileges in the city of Pensacola by virtue of the municipal ordinance passed November 18th, 1882, and issue was joined and the case disposed of in the Circuit Courts on the amended bill. The case will be considered here as presented by the amended bill and the issues raised thereon. In the answer to the amended bill the defendant gas company reserved the benefit of a demurrer thereto, on the ground that the facts alleged did not entitle complainant to any relief in equity.
It is insisted by counsel for appellant that the contract sought to be specifically performed imposes no obligation upon the gas company to furnish gas lamps in excess of 137 at its own expense. The bill alleges that the gas company has refused, and still refuses, to erect public street lamps in said city at points required, unless it pays the gas company the cost of erecting such lamps and the cost of pipes and other expenses inci*334dent to the connection of such lamps with the mains ©f the company. In answer to this allegation the gas company alleges that it is ready, able and willing to erect any number of public street lamps at such points as may be designated by the city, provided it will pay for erecting the same, or will pay the gas company for gas furnished to the lamps such reasonable sum as will enable the company to erect such lamps at its- own expense. It is also alleged that the points indicated by the city for the erection of street lamps are so situated as to require an extension of the company’s mains into localities where it would not have other customers for gas, and that it would be a continuing loss and hardship if forced to erect street lamps as prayed'for in the bill; and further, that it was not contemplated when the gas company contracted with the city that street gas lamps should be erected at points where there were no other customers of gas, and that the company did not intend to contract for the erection, at its eost, of more than 137 street lamps.
It becomes necessary, in the first place, for us to ascertain what is the contract, as well as its meaning, alleged to exist between the parties in reference to the subject-matter of this suit. The contract, according to the allegations of the amended bill, is contained in the ordinance passed by the city of Pensacola on the 13th of November, 1882, the contract between' the provisional municipality and the gas company, made in August, 1885,. and the ordinance passed by the provisional municipality in May, 1891. The existence of the ordinances and contract, copies of which were filed with the bill, are admitted, but there is a wide difference between the-municipality and the gas company as to their proper construction. The original ordinance passed in 1882 by its terms granted to Walsh *335and Ms associates, now the gas company, the exclusive privilege, for the period of thirty years from its passage, of erecting gas works in the city, and of using the streets, alley-ways and public grounds for putting down pipe to convey gas for the use of the ■city and its inhabitants. The gas works were to be commenced within four months from .the date of the ordinance, and completed within eight months from the date of commencement, together with the laying down of such pipe as should be necessary for use in the business and inhabited parts of the city. This requirement as to laying down pipe had reference probably to the business and inhabited parts of the city at the time when the gas works were to be completed, which was eight months from the time construction was commenced, unless further time was extended, of which we have no information. The third section of this ■ordinance required. Walsh and his associates, as a consideration for the privilege granted, to furnish the citizens of the city with gas of good quality at a rate not to exceed three dollars per thousand cubic feet, and the city for public uses as required at the rate not to •exceed two dollars and seventy-five cents per thousand ■cubic feet. Construing this requirement, in connection with the exclusive privilege granted to erect gas works in the city and to use the streets for laying down pipe to convey gas for the use of the city and its inhabitants, its effect was to impose a continuing obligation upon the gas company to furnish gas, for the prices mentioned, as the demands of the city for public use and the needs of its inhabitants should require. The gas was to be furnished by means of pipes, the ■customary way of supplying gas, to be laid by the gas company, as is clearly indicated by the exclusive privilege given ‘ the company to lay down pipe in the *336streets, alley-ways and public grounds to be used in conveying gas for the use of the city and its inhabitants. A strict construction of the ternas of this ordinance as it stands, as against the gas company, and a liberal construction in favor of the granting power, should obtain. The right to supply a city and its inhabitants with gas by the use of pipes laid in the-public streets is a franchise belonging to the state, and the service performed, as a consideration for the-grant of such franchise, is of a public nature. New Orleans Gas Co. vs. Louisiana Light Co., 115 U. S., 650; Louisville Gas Co. vs. Citizens Gas Co., Ibid, 683. If the power to grant such a franchise be conferred upon a municipal corporation, it belongs to those powers,held by it in trust for the public, and the rule is that such grants from a municipality must be strictly construed as against the grantee, and this must guide-us in construing the entire contract before us. State ex rel. vs. Jacksonville Street Ry. Co., 29 Fla., 590, 10 South. Rep., 590; Birmingham & Pratt Mines St. Ry. Co. vs. Birmingham St. Ry. Co., 79 Ala., 465. The original ordinance of 1882, as it was passed, imposed the obligation upon the gas company of furnishing gas of good quality, at the prices therein mentioned, as the demands of the city for public use required, and in order to accomplish this it was made the duty of the gas company to put down, át its expense, the necessary pipe to convey the gas. By the contract made in August, 1885, the gas company agreed, for the considerations therein mentioned, to furnish the city with a number of street lamps not to exceed 137, and to light, extinguish, clean and keep them in, good repair without charge to the city. The lights or burners for the lamps, as well as a schedule of time for lighting and extinguishing them, are provided for in. *337this contract, and the price of the gas to the-city is changed from so much per thousand cubic-feet as in the ordinance of 1882, to <$1.66f for-each light per month, payable at the end of each. month. After providing that the gas company should . furnish street lamps not to exceed 137, with specified; burners, and that it should supply them with gas,, light and extinguish them according to a schedule-prescribed, the language of the contract is, “for which, light so furnished the city is to pay said gas company; -for each and every light the sum of $1.66fper month,” ’ payable at the end of each month. By the terms of:' this contract it was to take effect and be in force from, the 19th day of June, 1885, to the 19th day of June,. 1886. It is shown by the record that the gas company; furnished the 137 lamps with the required burners, and!, it is conceded by its counsel that it was its duty to. furnish the said lamps, supply them with gas, clean and; repair them without cost to the city otherwise than the pay of S1.66-J for each light per month. It is also-' shown that after the expiration of the time fixed in-the contract the gas company continued to furnish gas. to the city under the terms of the contract up to the..first of January, 1891, and during this time erected,, on the demand of the city, a number of street lamps;, in excess of 137 and supplied them with gas as provided in the contract. The bill alleges that this was. done without charge or demand of payment from the-city, but the answer, while' it admits that lamps in-excess of 137 were erected during that time, denies-that they were erected without charge to the city. It is alleged that the city was charged with every lamp in-excess of 137, and that itemized accounts were rendered from time to time to the city for the erection of,' *338such lamps. It appears from the proof that in the .general accounts rendered by the gas company to the city for gas furnished during that period there are items for “st. lamp erection.” One of these items was .in the account for 1888, and three in the account for .1890. The city made payments at different times to the gas company on the acoounts, but not paying in ..full, and it appears that there is a disagreement between them as to paying for erecting street lamps. .In 1892 the gas company,refused to erect any more . lamps upon the refusal of the city to pay for them, and ' ..the city instituted this suit. Such was the business . relation existing between the city and the gas company when the ordinance of May, 1891, was passed. The ' title of this ordinance is: “To effect a settlement of the claims of the Pensacola Gas Company against the ■ city of Pensacola, to establish the price of gas, and to , provide for public gas lamps for the period of ten years from January 1st, 1891, and to extend the term of the rights and privileges granted to the Pensacola Gas Company.” As disclosed by its title, several objects were to be accomplished by this ordinance. The gas company had obtained judgments against the city amounting, with interest to January 1st, 1891, to $6,200.50, and a settlement was desired. The plan, it seems, for paying the judgments, agreed on by the city and the gas company, was for the latter to reduce the price of gas as then paid for public use, so far as the city was concerned, and to increase it to private con- . sumers for a period of ten years from January 1st, 1891, and to extend the term of the rights and privileges granted to the gas company for fifty years from January 1st, 1891. The gas company is given the right to charge private consumers of gas for a period of ten years from the first, day of January, *3391891, a net price not exceeding the rate or equivalent of eight-tenths of one cent per hour for a fourteenuaDdle power light, if payment be made on or’before the 20th day of the month following the one in which the gas was furnished, but if not paid for within that time, the rate or equivalent of not exceeding nine-tenths of one cent per hour for the candle power mentioned might be charged. The price of gas to be furnished the city was not to exceed $18 per annum for each street gas lamp of the same efficiency as the service performed at the passage of the ordinance, including the furnishing of gas, lighting, extinguishing, cleaning and repairing. Other provisions are made relating to furnishing gas to the city, to which reference will be made in another connection. The gas company was to have an$ enjoy from and after November 13th, 1912, until January 1st, 1941, all the rights and privileges theretofore granted to it by the •city, except that after November 13th, 1912, its rights and privileges shall not be exclusive, but subject to the terms and provisions of regulating ordinances to which the company was then subject. It is also provided that nothing contained in the ordinance shall impair, modify or change any rights or privileges theretofore granted to, or acquired by the gas company except as therein specially set out. Considering both ordinances, as well as the contract of 1885 as they exist, it is entirely clear that the gas company is under obligation to supply the city with gas for public purposes as the public necessities require, and in order to accomplish this it is the duty of the company to put down the necessary pipes at its own expense. This duty was imposed upon the company by the original ordinance, as we have seen, and there is nothing in the contract of 1885, or the subsequent ordinance of *3401891 to relieve it of this duty. The exclusive privilege-given by the terms of the original ordinance of making gas in the city and of using the streets for putting-down pipe to convey gas for the use of the city and its inhabitants, is preserved until November 13th, 1912, with a change in reference to the price to be paid for the gas. The requirement under the original ordinance was that the city should be furnished with gas. of good quality for public uses as required, and if the public needs require that gas shall be furnished in any parts of the city it is the duty of the gas company to lay down the pipe to convey it where it is needed. We entertain no doubt about the duty of the gas company in this respect, and its refusal to furnish at its expense the necessary pipes to convey gas to any part of the city where the public necessities require it, upon a compliance with the contract on the part of the city, is without excuse. Whether or not the gas company is under obligation to furnish, at its expense, the necessary street lamps and burners under the contract as-it exists, is a question of more difficulty. There is no doubt about the duty of the gas company to furnish the 137 street lamps and burners provided for in the-contract of 1885, but these have been furnished, and the question arises under the ordinance of 1891 as to-its duty to furnish others as the public needs require. Our conclusion is, that by the terms of the contract as-it now exists, it is the duty of the gas company to erect street lamps as the public necessities for lighting the streets demand. The ordinance shows on its face-that the municipality was providing a service for lighting the streets of the city by means of street gas lamps-for a period of ten years, and that an exclusive privilege was being given to the gas company for that; purpose. “To establish the price of gas, and to pro*341vide for public gas lamps for the period of ten years from January 1st, 1891,” are subject-matters of the •-ordinance .expressed in the title, and for nearly five years prior to the passage of this ordinance the gas company had been supplying the city with gas under •a contract requiring the company to furnish, at its expense, street lamps with specified burners to the number of 137. This contract is referred to and made the basis of obligation between the parties as to the ser-, vice being provided for, except as otherwise provided in the ordinance. For the light furnished under the ■contract of 1885, which included the 137 street lamps, their lighting, extinguishing, cleaning and repairing, the city paid so much per month for each light, instead of so much per thousand cubic feet, as provided in the ordinance of 1882. The price for gas to the city is still to be so much for each light, but fixed at so much per annum, instead of per, month as formerly. In the portion of the second section of the ordinance regulating the duties of the gas company, it is provided that it shall not charge the city a higher price than $18 per annum for each public street lamp of the ■same efficiency as the present service, including furn ishing gas, lighting, extinguishing, cleaning and repairing. The terms, “lamps of the same efficiency as ■the present service,” does not mean the same number -of lamps then in use, but lamps of the same light-giving capacity. The lamps are to be lighted and the service for the ten-year period is to be rendered upon the same terms and conditions in all other respects as set out in the contract of 1885, and the lamps are to be furnished with burners of the same sizes named* in -said contract. ' This ordinance, as clearly indicated by its title, was designed to supply the city with gas and ■provide street lamps for a period of ten years. Fol*342lowing the provisions above referred to and in the-conclusion of the same section, we find the words, “said lamps to number not less than 160.” The lamps-here mentioned had reference to those to be employed in service for the city, and for which provision was-being made in the ordinance. The burners for the lamps are specially provided for and it is clear that the gas company must furnish them. The obligation to furnish street lamps, clean and repair them, imposed by the contract of 1885 was, we think, continued with, the limitation in it as to the number to be furnished, removed. As it now stands the gas company can insist on not less than 160 for which payment may be made, and this is of course in excess of the 137. The contract must be liberally construed in favor of the-granting power, and considering the nature of the service to be rendered and the time it is to continue, in connection with the terms used, we think the duty of furnishing street lamps as the public necessities require and on the terms of payment prescribed, rests-upon the gas company. In reaching this conclusion we-have not overlooked the fact that the gas company reduced the price of gas as then paid by the city as to-the quantity to be furnished it in the future, and can-celled a judgment of $6,200.50. The price of gas to be-paid by the city, however, for the ten years from January 1st, 1891, was much more than that fixed in. the original ordinance, and the price fixed for private consumers was considerably increased. Besides, the gas-company obtained an extension of its rights and privileges. The considerations pro and con, as expressed in the ordinance, are not such as to affect the meaning-of the terms of the contract as we have above construed, it.
*343Having ascertained the meaning of the terms of the contract as agreed upon between the parties, the next inquiry is the right of the city to maintain a bill inequity to enforce a specific performance of the duties^ thereby imposed upon the gas company. It is insisted on behalf of the gas company that should the contract be construed to impose upon it the duty of laying down the pipe, and of erecting street gas lamps om the demand of the city as public necessity requires,. still the city is not entitled to invoke the aid of a., court of equity in enforcing the performance of this . contract. Several grounds for resisting the suit under - this head are urged, the most prominent being that the city was indebted to the gas company at the time of filing its bill under the terms of the contract sought - to be enforced; that the contract is one for personal' services requiring a succession of acts on the part of' the gas company; that the contract is not certain in its provisions, and the ¿Dili is too general in its nature;that the contract is lacking mutuality, is unreasonable and oppressive, and is founded on a mistake of' fact. It will not be necessary for us to consider-any of these objections, except the one first mentioned.
We said in McCrillis vs. Copp, 31 Fla., 100, 12 South. Rep., 643, that the “enforcement of the specific - execution of a contract in a court of equity is not a matter of strict legal right, but rests in the sound discretion of the court. This does not mean an arbitrary discretion, but a sound legal discretion, and it may be stated generally, that a court of equity will decree the specific performance of _ a written contract where it is -. certain, fair in all of its parts, not in contravention of law or public policy, and is capable of being performed.” Vide Knox vs. Spratt, 23 Fla., 64, 6 South. *344Rep., 924, and Dewhurst vs. Wright, 29 Fla., 223, 10 South. Rep., 682. In reference to the default on the part of the complainant the rule is stated by Fry on Specific Performance, sec. 608, as. follows, viz: “With regard to the matters to be done by the plaintiff according to the terms of the contract, it is from obvious .principles of justice incumbent upon him, when he seeks the performance of the contract, to show, first : that he has performed, or been ready and willing to perform, all essential terms of the contract on his ¡part to be then performed; and, secondly, that he •is ready and willing to do all matters and things on his part thereafter to be done; and a default on his part in either of these respects furnishes a ground ■upon which the suit may be resisted.” Pomeroy 'On Specific Performance says (sec. 323): “It is the '..fundamental doctrine upon which the specific enforce- • ment of contracts in equity depends, that either of the parties seeking to obtain the equitable remedy against the other must, as a condition precedent to the exercise of his remedial right, show that he has done or • offered to do, or is then ready and willing to do, all -the essential and material acts required of him by the agreement at the time of commencing the suit, and also that he is ready and willing to do all such acts as shall be required of him in the specific execution of "the contract according to its terms.” This author says ‘.that there are two apparent exceptions to this rule: ' first, a strict performance at the very time stipulated' ' is not generally essential, and, second, immaterial deflects of the subject-matter or failure of title, when admitting of compensation, may not prevent a plaintiff : from enforcing the remaining part of the agreement. ". But even in these instances, there is no real departure :from the rule, for where a delay is permitted, it does *345not render performance some time, at or before the ■suit, any the less necessary, and the defects or failures in the subject-matter or title of the complainant must be so partial and immaterial that the substance of the contract and its essential terms can be carried into effect by the complainant. The general principle remains true as stated by Pomeroy, “that the party who, as actor, calls upon a court of equity for its specific relief, must show that he has complied, or has offered to comply, or is then ready and willing to comply with the provisions of the agreement in respect to what ought to have been done by him, and that he is ready ;and willing to comply with the provisions in respect to what he will be required to do in the future.” The .authorities are numerous and uniform in enforcing the rule that it is incumbent on a party who asks a court of chancery to compel the specific performance of a contract to show that he has performed, or been ready and willing to perform, all the essential terms of the contract on his part. Thorp vs. Pettit, 16 N. J. Eq., 488, Tyler vs. McCardle, 9 Smedes & M., 230; 22 Am. & Eng. Ency. of Law, note 1, p. 927. This is upon the principle that he who seeks equity must do equity, and it requires of the complainant “that he do all that is in his power to fulfil his part of the contract which he is seeking to enforce, according to its terms. He must do his full duty-or the court will not regard .his prayer.”
Issue was taken upon the allegation of the answer •that the gas company had' fully complied with the terms and conditions of the contract of May, 1891, but that the city was, at the time of filing the bill, and still is, indebted to the gas company for gas furnished, and that said indebtedness was due and unpaid. The p ;oof shows that when the bill was filed in September *3461892, and when the testimony was taken in December, 1893, the city was in arrear to the gas company a considerable sum for gas furnished since the passage of the ordinance of 1891. The account rendered by the company against the city for gas furnished and lamp erections, from January 1st, 1891, to October, 1893, shows-a balance of indebtedness of over five thousand dollars. The items in this account for lamp erections, amounting to between nine hundred and one thousand dollars, are disputed by the city, but if such items be entirely eliminated, it still leaves the city behind with the gas company a considerable sum of money for gas furnished under the contract since the passage of the ordinance of 1891. It is not denied by its counsel that the city was indebted to the gas company a considerable sum for gas furnished under the contract when the bill was filed, and \yhen the decree was rendered, but it is contended that the “sole question before the court below was the proper construction of the contract, the disputed point being as to which party was liable to pay for the newly erected lamps.” The further defense, however, of the city’s indebtedness for gas furnished under the contract is set up in the answer and made an issue in the suit. The refusal of the gas company to erect the street lamps free of cost to the city, on the ground that the contract imposed no such liability upon the company, did not deprive it of the right of showing in the suit for specific performance-that the city had not complied with the contract on its part. The gas company did not waive this defense, as it is expressly set up in its answer and made an issue in the case. It was incumbent upon the city to show a compliance, or an offer of compliance with the contract on its part, before it could call upon the gas company to execute its part of the agreement.. The rule. *347as above stated, required the city to show that it had performed, or had been ready and willing to perform, all the essential terms of the contract to be performed on its part at the filing of the bill, and no such compliance is even alleged by the city. The ordinance of 1891 expressly provides that payments for street lamp service shall be made monthly by the city to the gas company, and this is certainly a material and essential part of the agreement. The same contract that imposes the obligation upon the gas company to erect street lamps requires the city to pay monthly for gas furnished. Can the city then successfully invoke the aid of a court of chancery to compel the gas company to erect additional street lamps and supply them with gas, when the city, as appears here, is in default largely in paying for gas already furnished under the contract? We think not. Its failure to comply with the terms of the contract in paying for gas already furnished, so long as it exists, is, in our judgment, a bar to its right in equity to compel the gas company to erect more gas lamps. It can not be said that the city has performed, or been ready and willing to perform, all the essential and material parts of the agreement to be performed on its part when the bill was filed. Bowman vs. Irons, 2 Bibb, 78, 4 Am. Dec., 686; Board of Supervisors of Livingston Co. vs. Henneberry, 41 Ill., 179; Chicago Municipal Gas Light & Fuel Co. vs. Town of Lake, 130 Ill., 42; Askew vs. Carr, 81 Ga., 685; Ohio Steel Barb Fence Co. vs. Washburn & Moen Manufacturing Co., 26 Fed. Rep., 702; Tiedeman’s Equity Jurisprudence, sec. 498; 3 Pomeroy’s Equity Jurisprudence, sec. 1407. The fact that the gas company has the right to sue the city and coerce the payment for gas furnished does not relieve the city from, the necessity of showing in a court of equity a com*348pliance witli the contract on her part, nor will the refusal to decree a specific performance solely on account of the failure of the city to comply with the contract as to paying for gas, have the effect, as claimed by counsel, to change or alter the terms of the contract itself.
The reformation of the contract is not involved in this suit.' The city is in a court of chancery, and before it can ask equity it must do equity. It can not withhold from the gas company a large sum of money due it under the contract for supplying lamps and gaslight service, and at the same time ask the company to comply with the contract on its part in erecting more lamps. To permit this would be to enforce the contract for the city’s benefit when it was not complying with the contract in an essential particular. For this' reason the decree was erroneous.
In disposing of the case on the grounds considered we do not decide any others raised, or that may be involved in the record.
The decree is reversed, and it will be so ordered.