Added example of bad code for comparison

Original example only contains best practice code. Added example of bad practice for comparison.