added module that calculates averages