simplifying the code examples