Education in the Joseon dynasty of Korea was largely aimed at preparing students for government service. The ultimate goal of most students was successful passage of the state examinations, known as gwageo. Educational institutions were extremely widespread in the country, and can be divided into public and private. The highest public institution was the Seonggyungwan, located in Seoul. Below this were the Sahak (사부학당), four schools providing technical training, and the hyanggyo, schools supported by each of the Eight Provinces. The hyanggyo soon fell into neglect, and for most of the Joseon period education was dominated by two types of private schools, seowon (preparatory schools mostly for the aristocracy) and seodang (private village schools providing elementary education). Civil service examinations The civil service examinations, known as gwageo, assessed subject's ability to interpret the Chinese classics, in terms of official Neo-Confucian ideology. The gwageo were divided into civil and military sections. The gwageo system had been set up in the Goryeo dynasty, but reached its peak in the Joseon period. Noble status during the Joseon Dynasty was decided by education level; generally, passing court exams led to an easier path into upper class status. The upper class, referred to as yangban, was split into two groups: munban or mungwa, who were civilian officers and military officials. Different types of exams existed based on official court positions; two preliminary civil service exams, sogwa, were followed by one higher civil service exam, daegwa. When combined, the three exams were known as mungwa. The sogwa consisted of two smaller exams, known as the saengwon-si, which was composed of Confucian classics, and the jinsa-si, which contained essay writing. The military exam, mugwa, included military training and required proficiency in the Confucian classics, otherwise known as the Four Books and Three Classics , and knowledge in legislative theory. The first mungwa exams were held in 1399, and from 1402 to 1894, 801 mugwa testing sessions were held. Approximately 15,150 people passed the mungwa, a higher form of civil service examination, daegwa, between 1392 and 1897. Medical licensing examinations Medical examinations, known as uigwa, were not a requirement for doctors treating civilians; the only requirement was an apprenticeship, after which civilian physicians would be able to begin their medical work. Royal physicians and officers had to complete an examination, after which they gained their license. Such exams had to be passed before physicians could accept responsibility for