Modeling the spread of antibiotic resistance