fix loop code typos
compile book.md