starting to do something more organized. daily averages function added