Create stack class