append method push,pop,shift,modifyLast