Incorporating deque into example.c.