use copy constructor of stack