Workinging on ch04 ex04 to print. duplicate, and swap elements in the stack