Added QE SPX Study

factored out some common codes from the studies.