added an array and its printing the first string to the console when index 0 is called