Complex sentence: The building was built by the judge Dimitrije Mita Golubović; at the beginning, it was the head office of the Russian Imperial Consulate, then the Serbian Institute for the war orphans, and finally since 1879 the Ministry of Education.
Split into simpler sentences: The building was built by the judge Dimitrije Mita Golubović. In the beginning it was the head office of the Russian Imperial Consulate, then the Serbian Institute for the war orphans, and finally since 1879 the Ministry of Education.