What is the main functions of Photosynthesis?

A. To provide O2 to the atmosphere

B. To make glucose for the cells

C. To make chlorophyll for the cholorplast

D. To generate energy for the plant