Modeling chemistry