Lentils, beans and chickpeas have fed people for thousands of years. Scientists are still discovering how these pulses affect the human body when eaten.