 He also attended natural sciences classes, where he studied anatomy, chemistry, botany and mathematics.At the same time he acquired some education in music.He finished his studies of law at the University of Budapest in 1785 and there he defended his doctoral thesis entitled "De causa et fine civitatis" (On the Cause and Purpose of the Existence of the State) the following year, thus becoming the first Serb PhD of Legal Sciences in the country at the time.