added the loop and fixed errors in EmployeeArrays