Implementation of remove() method added