Both genetic and environmental factors explain cognitive traits, shows a new study carried out on red junglefowl. Researchers at Linköping University in Sweden have shown that the ability of fowl to cope with difficult learning tasks is heritable, while their optimism can be explained by environmental factors.