Carbon compounds include macromolecules such as carbohydrates, lipids, nucleic acids, and proteins. Macromolecules are polymers formed from monomers joining together, such as monosaccharides forming polysaccharides or amino acids forming proteins. These macromolecules have important functions in energy storage, structure, and heredity.