Photosynthesis takes place in the