Code examples and extrapolations from book