How does the Caste System Work?

It divides humanity into classes by a number of things. In the Hindu caste system one may be divided by occupation. The priestly and educated at the top, the soldiers and leaders next followed by traders and farmers. Artist and service people would be considered the lowest.