leaves contain chlorophyll, a green pigment capable of absorbing light energy. This can then be used to make sugar out of CO2 in the atmosphere, ie from the air. This is stored as starch or used as energy/glucose. The equation for this is as follows: Carbon dioxide + water + light energy ----> glucose + oxygen