creating custom remove method for the Sequence class

creating custom remove method for the Sequence class