make for loop take a generic target...

...uses enumerate protocol to return an array to iterate over