 Complete the following phrase:  On the other hand, there is the principality of Moldavia. It emerged as a state after the defeat of the Tatars by the King of Hungary, Louis I. The area remained under Hungarian influence and was formally established as a Hungarian fiefdom in 1347 under Dragoș. He was succeeded by Sas, who would be defeated by Bogdan I finishing the Hungarian suzerainty over Moldavia and starting its independence. It is argued, however, that for most or all of his reign and on its aftermath, Moldavia remained a Hungarian vassal or Hungarian-Polish during the union of both from 1370 to 1382. The first Moldavian territorial change would take place a few years later. In 1388, Władysław II Jagiełło wanted money to wage a war against the Teutonic Order, so he asked Petru II of Moldavia for a loan 4,000 rubles. Pokuttya was used as a pledge, and it was ceded to it. This loan was probably never paid. The territory would become a place of dispute between Poland and Moldavia for the next two centuries, and was finally lost by the latter one in 1531 after the 