started creating new function for analyzing time-series data

-not done, but framework has been started