Add a function to add a new book.