completed implementation of both command and operator stacks.