2 Analytical theory of epidemics