give avg, median, min, and max using a unified interface