Immunology is the study of the immune system and its functions, including distinguishing self from non-self and protecting the body from foreign substances. The immune system has evolved over time to include both innate immunity, which acts quickly but non-specifically, and adaptive immunity, which has specificity and memory. Key events in the development of immunology include the discovery of phagocytosis, humoral immunity, and the development of vaccination against smallpox. Modern immunology utilizes many techniques to study immune cells and molecules at the genetic and protein level to further understand immunity and its applications to disease treatment.