Example code corrected.