Added time series example code