calculator class, stack class