added classes for the stack implementation