added classes for stack operations