added code for getting book information from API