Very well put. The caste system in Sanatana Dharma was not founded on profession or occupation but actually on the attitude and aptitude of the individual. The behavior more than anything else determined to which group he belonged. Further Sanatana Dharma is a dharma and not a religion. Religion specifies do's and dont's to its followers in daily life. Religion interferes in political, social, financial, and legal aspects of life. It also very much intrudes in scientific arena sometimes to the detriment of its followers. Having said this, it must be noted that religions are based on nyaya or justice. Sanatana Dharma is based on dharma. Now what is nyaya and what is dharma? For nyaya you need anyaya or injustice or acts or intents or thoughts of injustice. In dharma, there is no conflict. Nyaya depends on or is founded upon action or karma; dharma is founded upon naishkarma or nondoing or in other words attitude. Religion is action; dharma is attitude. If one's attitude is right, then all actions are right! No need for any conflict. Figure it out for yourself now.