Implement rudimentary queue and avg calculator.