fixed inconsistency in code examples.