edited TimeSeries, added firstD function