added stack implementation problem solution