How Some Mistakes Can be Generative for Teachers and Students Alike