stack class creation