First commit of timeseries code