The Republic was an early adopter of what are now regarded as modern laws and institutions: a medical service was introduced in 1301, with the first pharmacy, still operating to this day, being opened in 1317. An almshouse was opened in 1347, and the first quarantine hospital (Lazarete) was established in 1377. Slave trading was abolished in 1418, and an orphanage opened in 1432. A water supply system, instead of a cistern, was constructed in 1438 by the Neapolitan architect and engineer Onofrio della Cava. He completed the aqueduct with two public fountains. He also built a number of mills along one of its branches.