can calculate averages, started to modify individual elements of vector, will need to refactor probably