time series class