In the above examples, we assumed that the same number of widgets were made and sold both before and after the introduction of the tax.
The supply and demand economic model suggests that any tax raises the cost of transaction for someone, whether it is the seller or purchaser.