implemented iterator in Catalog.java