edited: moved get data series to separate class