Fructose and glucose are classified as carbohydrates because they