Streamlining code with the book snippets