Cities of the second class now owning a waterworks system are authorized and empowered to purchase, construct, own, and maintain water supply lines to the city limits of any adjacent city or town where the latter city or town agrees to purchase water under contract from the supplying city.