Code samples for the book