Working example from the book.