added stack calculator