Before the end of the century, modern infrastructure such as electricity, telegraph and telephones began to appear. Industry grew and modernized, with El Hércules becoming the largest textile factory in the country. Haciendas and agricultural production also grew, especially in the north of the state. The capital was modified and expanded, and it was linked to the rest of the country via rail in 1882. Public education began in the state at the beginning of the 20th century with fifty-four primary schools and the first graduates of the state’s first teachers’ college.