added book code examples to lib