created stack class