Simple Calculator using stacks