Take the script from the previous example (examples/files/count_sum.pl) and in addition to the sum of the numbers print also

minimum
maximum
average

median and standard deviation are probably too difficult for now.