refactored amazon api request into its own class