Updated lab9 to iterators and streams