added endpoint to add a new book