Kim Il-sung took the least humane elements of Confucianism and combined them with Stalinism. At the top of the pyramid, instead of an emperor, resided Kim Il-sung and his family. From there began a downward progression of fifty-one categories that were lumped into three broad classes—the core class, the wavering class, and the hostile class.