Rearranging things and adding in the ebay api call