added java.util.iterator and menu interface