adding promise for adding a book