Code as I followed along with the book.