corrected some typos on example