Created the array for real this time. Now the values of the _salary gets stored in the array and also gets listed below