Modify code for scraping properties to use ArrayList and iterator, rather than arrays and direct indexing.