sample codes working on aws