Original sentence: The four varnas caste theory in theological Hinduism, while not initially rigid, came to be used with time as a device to maintain the domination of the upper castes, brahmins and kshatriyas (the ruling order) over the rest of society, using divine doctrine and notions of racial purity
Edited sentence: Originally meant to classify the spirituality and occupation of people in the Vedas, the four varnas caste theory in theological Hinduism was misused as a device to maintain the domination of the upper castes, brahmins and kshatriyas (the ruling order) over the rest of society, using divine doctrine and notions of racial purity