Modeling epidemics with differential equations