What new class did colonial rule create? How did this eventually lead to the end of colonialism?