Sample code from kinds of books