Simple models for containment of a pandemic