add example of the variation of remove method