A small change in the for loop where I put in the salaries in the array