Modeling the Carbon Cycle