Environmental effects on cognitive abilities