Added loops, iterators and regex