added stack command stack implementation