How children inherit intelligence