Arrays and collections

intQueue = []
intQueue.push(1)
intQueue.push(3)
intQueue.push(5)

top = intQueue[0]
# top is 1
first = intQueue.shift()
# first is 1
second = intQueue.shift()
# second is 3
third = intQueue.shift()
# third is 5

puts "top is #{top}"
puts "first is #{first}"
puts "second is #{second}"
puts "third is #{third}"