using int stream to compute avg and sum
slides update