the code for stack use list