adding a book fully functional