in Java 7 I need to implement the remove() method