My attempt to learn queue techniques