added a forEach loop to print out names