ecessary to protect the city from the use of materials of a poor or dangerous quality; (e) To have the care of all public buildings when erected, including markets and slaughterhouses and buildings rented for city purposes, and of any system now or hereafter established by the city for lighting the streets, public places or public buildings; (f) To take care of all public streets, parks and bridge