Add the function to convert salary list to dot list