Initial version of pollutantmean() function