redid exercise4_4 to make more clean/efficient: added commands to print stack without popping, duplicate top element, swap, and clear