Added the first testing stuff from the book.