. . . "A person entering into a written contract with the owner of any interest in real property, or with any person acting for, on behalf of, or with the consent of such owner for the whole or part of the erection, alteration, repair or removal of a building, structure, or other improvement to real property, or for furnishing material or rental equipment, appliances, or tools therefor, shall have a lien" . . . .