Create a timeseries class with getter methods, and unit tests