The third type of state to emerge in Uganda was that of Buganda, on the northern shores of Lake Victoria. This area of swamp and hillside was not attractive to the rulers of pastoral states farther north and west. There, as in the nearby Haya kingdom of west Tanzania, the wealth of the ruling class continued to depend more on banana lands and groves than cattle, and no sharp caste-like distinction between farmers and herders formed. Buganda became a refuge area, however, for those who wished to escape rule by Bunyoro or for factions within Bunyoro who were defeated in contests for power.