The mayor and council shall have full power and authority to adopt by ordinance such a system of equalizing assessments on real estate for the above purposes for the amounts set forth as may be just and proper, estimating the total cost of each improvement made and prorating the cost thereof on the real estate, according to its frontage on the street or portion of street improved. The amount of assessment on each piece of real estate shall be a lien on said real estate from the date of the passage of the ordinance providing for the work and making the assessment.