adding some of the work I have already done in the book.