How plants respond to environmental threats with proper defense