extracted amazon api to a model class called AmazonAPI