Implemented the rest of the library according to the book.