The teacher decided to make an example of the student who was cheating.
The boss wanted to make an example of someone to show that dishonesty would not be tolerated.
The company decided to make an example of a warning employee to prevent others from breaking the rules.