added Amazon sample code.