Complex sentence: This way may work, or instead, negative punishment can also be useful, for example, not giving dessert to children if they do not finish all their food.
Split into simpler sentences: This way may work or instead negative punishment can also be useful. For example, not giving dessert to a child if they don't finish all their food.