Code samples from books I am reading