exercise 4_4 done and added print whole stack operation