How Contagion Works