For example, a study conducted by the University of Illinois found that students who ate a healthier lunch had better memory, attention, and cognitive function than those who ate a less healthy lunch.