Lipids and proteins can be formed from carbohydrates. Which elements do these molecules have in common that help form different molecules?