All children who live in an endemic area become infected with malaria at some time. They gain immunity with each infection, which reduces their risk of severe malaria as they grow older. Insecticide-treated mosquito nets are used to reduce exposure to the parasite, but how does this affect the development of immunity?