Example updated to use querySelector.