through the process of photosynthesis , which converts carbon dioxide into organic compounds using energy from sunlight , the cells were able to increase their metabolism and obtain more sustenance from the same food source .