working on deque exercise