Draft implementation of the remove method