Working on TimeSeries class