Compounds that contain the elements carbon, hydrogen and oxygen – there is always twice as much hydrogen as there is oxygen. Made up of subunits called simple sugars. Carbohydrates are one of the major classes of nutrients, and one function in the body is as an energy source.