created aws factory class