His students were struggling, so he 'flipped' his classroom. Then everything changed.