Added get_data() method to time series class