during the starting of the caste system people were categorized on the basis of their profession for example kings(kshtriya) priests(brahman) traders(vaishya)  and farmers workers etc(Sudra)  as the ages passed their offspring's choose different professions but they were treated with the same respect as thier fathers or fore fathers they could never lead a independent life so the Buddhists and jains   were against caste system
2 5 2