add the basic code of stack