Cotorsion pairs and model categories