Added all code for early release book.