fixed errors in the code examples.