added stack into header file