 Overall, although the idea had merit, the reforms were not as successful as they were expected to be; in some parts of Austria, half of the population was illiterate well into the 19th century.Maria Theresa permitted non-Catholics to attend university and allowed the introduction of secular subjects (such as law), which influenced the decline of theology as the main foundation of university education.Furthermore, under her reign, educational institutions were created to prepare officials for work in the state bureaucracy, the Theresianum was established in Vienna in 1746 to educate nobles' sons, a military school named the Theresian Military Academy was founded in Wiener Neustadt in 1751, and an Oriental Academy for future diplomats was created in 1754.