closed #21, implemeted time series