added the functionality to delete a book