The function of adaptive immunity is to provide a specific and targeted response to pathogens, including: