Created print function for stack.