Teaching Problem-Solving Instead of Punishment