Book example and code