What does a empire and a republic have in common?