Adding stack class