refined the loop that adds names to an array
trying to take objects in array and turn them into Persons