Added my code for synthetic time series