punishing someone is for teaching