teacher punishes student for bad grades