AI in Education: Managing Benefits and Risks