Added sum, avg fcns