a calculator used paradigm stack(learn from hurley)