added stack class