What did Confucianism teach about rulers?

They should lead by example.
They were equal with others in society.
They were not from the royal class.
They should defer to clan rulers who led noble families.