Time series project 1 code