in 1506 albert issued a primogeniture act, stipulating that bavaria should remain undivided. the result was that his two younger sons louis and ernest were excluded from the government. louis's parents decided that he should follow an ecclesiastical career instead. after albert died in 1508, the bavarian court historian johannes aventinus was entrusted with providing ernest with a suitable education. ernest and louis travelled to italy, here he worked in pavia and attended lectures from the famous legal scholar jason magnus. ernest also travelled to paris and to saxony with john of malentein, who later became bishop of seckau.