Modernize Deque example