added remove method to stack elements