pull was replaced to pop as in Queue class