Study finds the first genes associated with general cognitive function