modified add book a so that it and addbook to wishlist can resuse the same
code