added print function to stack