With their plastids and the help of energy from sunlight, carbon dioxide and water are converted into sugar by photosynthesis. Sugar is then converted into other organic molecules which can be used in cellular functions. Such a function might be, for example, respiration. 