added Amazon sample code