Patterns repeat themselves in history