A Model for Evolution and Extinction