Adding a stack and buffer concept to Calculator to keep track of operators