 During the periods 1812-1917 and 1944–89, Moldovans were influenced by Russian and Soviet administrative control as well and by ethnic Russian immigration.The country's cultural heritage was marked by numerous churches and monasteries built by the Moldavian ruler Stephen the Great in the 15th century, by the works of the later renaissance Metropolitans Varlaam and Dosoftei, and those of scholars such as Grigore Ureche, Miron Costin, Nicolae Milescu, Dimitrie Cantemir and Ion Neculce.In the 19th century, Moldavians from the territories of the medieval Principality of Moldavia, divided into Bessarabia, Bukovina, and Western Moldavia (after 1859, Romania), made a significant contribution to the formation of the modern Romanian culture.