Rewrote class so that time series can be added from the constructor.