Saponins are compounds found in many plants that produce foaming in water. They can be classified as steroidal or pentacyclic triterpenoid based on their structure. Steroidal saponins are derived from plants like yams and contain sapogenins like diosgenin. Pentacyclic triterpenoid saponins are derived from many dicotyledonous plants and contain sapogenins like alpha-amyrin or beta-amyrin. Cardiac glycosides are found in plants like Digitalis and contain steroidal compounds that have effects on the heart by slowing it down and strengthening contractions.