class Queue:
	def __init__(self):
		self.buffer = deque()

	def enqueue(self, val):
		self.buffer.appendleft(val)
        
	def dequeue(self):
		return self.buffer.pop()	

	def printQ(self):
		print(self.buffer)

if __name__ == '__main__':
	from collections import deque

	pq = Queue()

	pq.enqueue({
    'company': 'Wall Mart',
    'timestamp': '15 apr, 11.01 AM',
    'price': 131.10
				})
	pq.enqueue({
    'company': 'Wall Mart',
    'timestamp': '15 apr, 11.02 AM',
    'price': 132
				})
	pq.enqueue({
    'company': 'Wall Mart',
    'timestamp': '15 apr, 11.03 AM',
    'price': 135
				})
	
	pq.printQ()

	pq.dequeue()

	pq.printQ()

