after stating the facts, delivered the opinion of the court.
1. The first question is as to the right of the city to take and receive the bond upon which this action was brought. The charter of Salem declares that the common council shall have exclusive power to “contract for water and lights for city purposes, or to lease, purchase, or construct a plant or plants for water or lights, or both, for city purposes, in or outside the city limits; provided, that the council, upon making a careful and accurate estimate of building or purchasing and running such plant or plants, finds that the same may be constructed or purchased and run at a much less expense to the city than can be contracted for with private parties. • The expense for building or purchasing such plant or plants cannot be entered into except by two-thirds vote of all the legal voters voting at any general election, or at a special election called by .the council for such purpose, by a two-thirds vote to incur such expense, the council may enter into a contract; provided, that the council may grant and allow the use of streets and alleys of the city to any person, company or corporation who may desire to establish works for supplying the city and inhabitants thereof with such water or light upon such terms and conditions as the council may prescribe” (Laws, 1899, p. 924, § 6, subd. 6); and “to allow and regulate the erection and maintenance of poles or poles and wires for telegraph, * * * electric light or other purposes, * * * upon or over the streets,' alleys or public grounds of the city; to permit and regulate the use of the streets, alleys and public grounds of the city for laying down and repairing gas and water mains, *343for building and repairing sewers, and tbe erection of gas or other lights; to preserve the streets, alleys, side and cross walks, bridges, and public grounds from injury, and prevent the unlawful use of the same, and to regulate their use” (Laws, 1899, p. 927, § 6, subd. 26). The legislature has thus delegated to the city the power of regulating and controlling the use of the streets by light and water companies, and vested it with exclusive authority to grant to such companies the privilege of so using them, upon such terms and conditions as the council may prescribe. The paramount authority over streets and highways is vested in the legislature as the representative of the entire people. It may, however, delegate to municipal corporations such a measure of its power as it may deem expedient, and the local authorities, by virtue of such delegation, can enact ordinances and local laws, which have, Avithin their jurisdiction, the force of the general statutes of the state: Tiedeman, Mun. Corp. § 289.
The granting of authority to public service companies to use the streets and highways is a legislative act, entirely beyond the control of the judicial power, so long as it is within proper constitutional limitations. It may be exercised directly by the legislature, or be delegated by that body to a municipal corporation; and, when so delegated, the municipality has, Avithin the authority granted, the same rights and powers that the legislature itself possesses. To that extent it is endowed Avith legislative sovereignty, the exercise of which has no limit, so long as it is within the objects and trusts for which the power was conferred. It is admitted that the legislature may, by virtue of its paramount authority, require bonds or undertakings ofi. the grantees of such privileges, conditioned that they will construct their works within a specified time, or that they will otherwise comply with the terms of their grant,.and a municipal corporation to which the exclusive power over the subject has been delegated may exercise the same right. There is no express provision in the charter of Salem authorizing the council, upon granting the privileges to use the streets, to require that the work shall be done within a specified time; *344nor is it necessary. It is given the exclusive power to make the grant “upon such terms and conditions” as it may prescribe, which necessarily authorizes it to impose such reasonable conditions precedent or subsequent to the granting or exercise of the franchise as may be deemed necessary or proper, including a requirement that the grantee shall give a bond, conditioned as the one in suit: City of Indianola v. Gulf, W. T. & P. Ry. 56 Tex. 594. In City of Aberdeen v. Honey, 8 Wash. 251 (35 Pac. 1097), the power of the municipality was limited by the terms of its charter, and the court held that, by reason of such limitation, it did not have the authority to exact a bond from the grantee of a franchise for a street railway. Hence that case is not authority here. We are of the opinion, therefore, that the bond in suit was valid, and within the power of the city to require and accept.
2. The remaining question is as to whether the sum specified in the bond is to be regarded as a penalty, or as liquidated damages. It is often difficult to determine whether a sum stipulated in a contract' to be paid on breach thereof shall be considered as liquidated damages or as a penalty, and there is a wide divergence of opinion in the adjudged eases on the subject. The object is, of course, to ascertain the intention of the parties, as nearly as possible, and to enforce the contract according to their agreement. In doing this, the courts are not governed altogether by the language of the contract or by the term employed to designate the sum to be paid. “If it is liquidated damages, they will enforce it, though erroneously called a ‘penalty,’ and, on the other hand, if it is in the nature of a penalty, they will not allow it to be enforced, although the parties have expressly stated that it is to be paid as ‘liquidated damages,’ and not as a ‘penalty’”: Clark, Contr. 599. See, also, 53 Cent. Law J. 183; 19 Am. & Eng. Ency. Law (2 ed.), 400; Kemp v. Knickerbocker Ice Co. 69 N. Y. 45; Foley v. McKeegan, 4 Iowa, 1 (66 Am. Dec. 107). For the construction of such contracts, as between private parties, certain arbitrary rules have been laid down, which, although not necessarily controlling in all cases, are regarded as affording a *345general guide by which controversies relating thereto may be determined. Among these are: (1) Where the contract is conditioned for the performance of some collateral agreement, the sum mentioned therein will be presumed to be a penalty, and it is incumbent upon the party desiring to recover the sum named as liquidated damages to show that it was so intended by the contracting parties: O’Keefe v. Dyer, 20 Mont. 477 (52 Pac. 196); Davis v. Gillet, 52 N. H. 126; Dill v. Lawrence, 109 Ind. 564 (10 N. E. 573); and (2) when the actual damages in case of a breach of the contract must necessarily be speculative, uncertain, and incapable of definite ascertainment, the stipulated sum will be regarded as liquidated damages, and may be recovered as such without proof of actual damages, unless the language of the contract shows, or the circumstances under which it was made indicate, a contrary intention of the parties, or it so manifestly exceeds the actual injury suffered as to be unconscionable: 19 Am. & Eng. Ency. Law (2 ed.), 402; Clark, Contr. 600; 1 Sutherland, Dam. (2 ed.), § 283; Commonwealth v. Ginn (Ky.), 63 S. W. 467; Malone v. City of Philadelphia, 147 Pa. 416 (23 Atl. 628); Emery v. Boyle, 200 Pa. 249 (49 Atl. 779); Taylor v. Times Newsp. Co. 83 Minn. 523 (86 N. W. 760). Where the damages are uncertain and speculative, the presumption ordinarily is that the parties have taken that into consideration in making the contract, and have agreed upon a definite sum to be paid in ease of a breach, in order to put the question beyond dispute .and controversy and to avoid the difficulty of proving actual damages. It would seem, therefore, that, even if the present case is to be controlled entirely by the rules applicable to controversies between private parties, there is reason for holding that the amount stipulated in the bond should be regarded as liquidated damages, and not as a penalty. The damages, if any, to the city from Anson’s failure to build his plant within the specified time, were necessarily speculative and uncertain, if not absolutely incapable of proof. Indeed, it is quite doubtful whether the city could have been damaged in any way by such failure. It could gain nothing in its political or sovereign *346capacity by the construction of the plant, and could lose nothing by its nonconstruction. The damages resulting from the loss of the promised share of the gross income of the proposed plant and the right of purchase are not covered by the bond, and, moreover, are so speculative, uncertain, and dependent upon so many contingencies, that they can scarcely be regarded as a subject of judicial investigation.
But, whatever the rule might be as between private individuals, this action is not to be determined wholly by the principles applicable to contracts of that bind. The sum specified in the bond is somewhat in the nature of a statutory penalty for the nonperformance of a duty enjoined by law. The ordinance granting to Anson the right and privilege to use the streets and highways of the city in the construction and maintenance of his plant had the force and effect of a statute, and by his acceptance of its provisions he became bound to comply with its terms as a statutory duty. The bond in question was given as security for the performance of such duty, and the sum specified therein is in the nature of a penalty, to be imposed as a punishment for disobeying or disregarding the pro-' visions of the ordinance: Maryland, to use, v. Baltimore & O. R. Co. 44 U. S. (3 How.) 534. The case of Clark v. Barnard, 108 U. S. 436 (2 Sup. Ct. 878), is very similar to the one in hand. The legislature of Rhode Island passed an act authorizing the Boston, Hartford & Erie Railroad Company to locate and construct a railroad through the state, but the act was not to go into effect unless the railroad company should, within ninety days from the adjournment of the legislature, deposit in the office of the treasurer its bond, with sureties satisfactory to the governor, in the sum of $100,000, that it would complete the road before the first day of January, 1872. In compliance with this statute, the railroad company made, executed, and filed in the office of the treasurer an ordinary penal bond in the sum stated, conditioned as in the act required. It failed to build the road, and, in a suit to enjoin the treasurer from receiving or collecting the sum specified in the bond, it was contended, as here, that the obligation required by the statute *347and given by the company was an ordinary penal bond, upon which no recovery could be had except for the damages the state actually sustained from the breach of its conditions, and, it being admitted that no damages had resulted, the money arising from the payment of a certificate of indebtedness pledged in lieu of sureties on the bond reverted to the plaintiff. This position was sustained by the trial court, but on appeal the decree was reversed, and it was held that the state was entitled to collect the full amount of the bond, notwithstanding ■it was admitted that it had not been damaged by the breach thereof. The judgment is based upon two principal considerations : (1) That it was^ot, and could not have been, intended by the parties that the bond was a mere indemnifying bond; and (2) that the sum mentioned therein was imposed by the state as a statutory penalty for the nonperformance of a statutory duty.
After pointing out that no damage could possibly have arisen to the state in its sovereign or political capacity by the failure of the railroad company to construct its road as provided in this statute, Mr. Justice Matthews, speaking for the court, said: “The question of damages and compensation.was not, because it could not have been, in contemplation of the parties. There was no room for supposing that there could be any. To assume that the statute required this hond and security in this sense, in full view of the legal conclusion which it is said necessarily flows from its form, and that in the event contemplated, of the failure to build the road, all that remained to be done was that the state should hand back canceled the obligation and security it had been at such pains to exact, is to put upon the transaction an interpretation altogether inadmissible. It would have been, upon such an assumption, a vain and senseless thing, and, however private persons may be sometimes supposed to act improvidently, we are not to put such constructions, when it is legally possible to avoid them, upon the deliberate and solemn acts and transactions of a sovereign power, acting through the forms of legislation. The conclusion, in our opinion, cannot be resisted that the in*348tention of the parties in the transaction in question was that, if the railroad should not be built within the time limited, the corporation should pay to the state, absolutely and for its own use, the sum named in the bond and secured by the deposited certificate of indebtedness. The supposition is not open that the penalty was prescribed merely in terrorem, to secure punctuality in performance, with the reserved intention of permitting subsequent performance to condone the default, for a distinct section of the statute * * * declares that, in eases of failure to complete the road within the time limited, the act itself should be void and of no effect. ’ ’ In Nilson v. Town of Jonesboro, 57 Ark. 168 (20 S. W. 1093), the city granted to Nilson the right to construct a street railway over and through the streets of the city, and took from him a bond, in the sum of $500, conditioned for the faithful performance by him of the provisions of the ordinance. In an action to recover on the bond because of his failure to construct the railway within the time specified, the single question presented was whether the sum mentioned in the bond should be treated as a penalty or as liquidated damages, and, after a careful examination of the authorities, it was held that plaintiff was entitled to recover the amount specified, without proof of actual damages, and notwithstanding it appeared that the damages were in fact capable of assessment. In City of Indianola v. Gulf, W. T. & P. Ry. 56 Tex. 594, the City of Indianola granted a railway company the right to construct its road through one of the streets of the city, on the condition that it should extend it to a point sixty-five miles distantwithin a certain definite time, and exacted a bond in the sum of $50,000, conditioned for the faithful performance of the grant on its part. The company failed to construct the road, and in a suit on the bond it was held that the sum stated therein was stipulated damages, and that the city could recover the full amount thereof without proof of actual, damages. It is true that in that ease, as also in Nilson v. Town of Jonesboro, 57 Ark. 168 (20 S. W. 1093), the term “liquidated damages” was used in the contract. But the decisions did not turn upon *349that fact, but were principally controlled by the consideration that no accurate computation of the real damages could be made. .
Within the doctrine of these cases, and they seem to be sound, the demurrer to the complaint should have been overruled. The judgment of the court below must therefore be reversed, and the cause remanded for such further proceedings as may be proper, not inconsistent with this opinion.
Reversed.