 Complete the following phrase:  In 1805, a court was set up in the town. In the 19th century the trades began to be replaced by factory manufacturing. One of the largest factories in Galicia for the construction of farm machinery was built in 1843. These machines were demonstrated at the second world exhibition held in Vienna in 1844. In 1870 a match factory was built in the town. In 1886 deposits of oil were discovered locally. In 1893 a railway line was built to Stanislaviv. The first train traveled the line on October 21, 1894. In the late 18th century, Count Ignacy Cetner founded here a tobacco field, excavated local salt deposits, and invited German settlers. After World War I and the 