ch10.1 simple deque