This is the individual parts put together

Still need to work on range indexing errors
Create function that generates data points from aggregated time values