made and tested stack class