Simple program that prints a list of names in an array