implements new logic for calculating average with stored and live tweets