Which of the following is not necessary for a plant to do photosynthesis?

A. Carbon dioxide
B. Soil
C. Water
D. Light