Using iterators to find data (Ex5.3).