coded in Stats.java example from 1.3 discussion
1.3 queue example -- readInts()