Duolingo makes learning a language fun for students and useful for teachers.