in the ephemeral puppet state of Kingdom of Poland. In 1917 he started to work at the University of Lemberg (later Jan Kazimierz University in Poland) and acquired his habilitation qualification in 1920. In 1921 he became a profesor nadzwyczajny (associate professor) and in 1925 profesor zwyczajny (full professor) at the same university. During this time he taught a course on the then cutting edge theory of Lebesgue integration, one of the first such courses offered outside of France. While in Lwów, Steinhaus co-founded the Lwów School of Mathematics and was active in the circle of mathematicians associated with the Scottish cafe, although, according to Stanislaw Ulam, for the circle's gatherings, Steinhaus would have generally preferred a more upscale tea shop down the street. World War II In September 1939 after Nazi Germany and the Soviet Union both invaded and occupied Poland, as a fulfillment of the Molotov–Ribbentrop Pact they had signed earlier, Lwów initially came under Soviet occupation. Steinhaus considered escaping to Hungary but ultimately decided to remain in Lwów. The Soviets reorganized the university to give it a more Ukrainian character, but they did appoint Stefan Banach (Steinhaus's student) as the dean of the mathematics department and Steinhaus resumed teaching there. The faculty of the department at the school were also strengthened by several Polish refugees from German-occupied Poland. According to Steinhaus, during the experience of this period, he "acquired an insurmountable physical disgust in regard to all sorts of Soviet administrators, politicians and commissars" During the interwar period and the time of the Soviet occupation, Steinhaus contributed ten problems to the famous Scottish Book, including the last one, recorded shortly before Lwów was captured by the Nazis in 1941, during Operation Barbarossa. Steinhaus, because of his Jewish background, spent the Nazi occupation in hiding, first among friends in Lwów, then in the small towns of Osiczyna, near Zamość and Berdechów, near Kraków. The Polish anti-Nazi resistance provided him with false documents of a forest ranger who had died sometime earlier, by the name of Grzegorz Krochmalny. Under this name he taught clandestine classes (higher education was forbidden for Poles under the German occupation). Worried about the possibility of imminent death if captured by Germans, Steinhaus, without access to any scholarly material, reconstructed from memory and recorded all the mathematics he knew, in addition to writing other voluminous memoirs, of which only a little part has been published.