basic version of stack with pop push and print