Modeling Photosynthesis and Cellular Respiration