Updated example code with formatting errors and new comments.