How do the flowers, leaves, and stems help plants meet their basic needs?