Schooling and welfare