added example for time series