By 1850, Lowell's population was 33,000, making it the second largest city in Massachusetts and America's largest industrial center. The 5.6 mile long canal system produced 10,000 horsepower, being provided to ten corporations with a total of forty mills. Ten thousand workers used an equal number of looms fed by 320,000 spindles. The mills were producing 50,000 miles of cloth annually. Other industries developed in Lowell as well: The Lowell Machine Shop and Father John's Medicine opened. Tanneries, a bleachery, and service companies needed by the growing city were established. Moxie, an early soft drink, was invented in Lowell in the 1870s. Around 1880, Lowell became the first city in America to have telephone numbers.