The function implementation of the stack includes deletion