 Complete the following phrase:  After several years of study at the Academy of Kraków, he took part in the war against the insurgents of Bohdan Khmelnytsky and participated in the battles of Zbarazh in 1649, 