Improved the code examples