basic simple implementation of min, avg, max