The process by which green plants, algae, diatoms, and certain forms of bacteria make carbohydrates from carbon dioxide and water in the presence of chlorophyll, using energy captured from sunlight by chlorophyll, and releasing excess oxygen as a byproduct. In plants and algae, photosynthesis takes place in organelles called chloroplasts . Photosynthesis is usually viewed as a two-step process. First, in the light reactions , the energy-providing molecule ATP is synthesized using light energy absorbed by chlorophyll and accessory pigments such as carotenoids and phycobilins, and water is broken apart into oxygen and a hydrogen ion, with the electron of the hydrogen transferred to another energy molecule, NADPH. The ATP and NADPH molecules power the second part of photosynthesis by the transfer of electrons. In these light-independent or dark reactions , carbon is broken away from carbon dioxide and combined with hydrogen via the Calvin cycle to create carbohydrates. Some of the carbohydrates, the sugars, can then be transported around the organism for immediate use; others, the starches, can be stored for later use.