How does the carbon cycle work?