#17 made getPublicSalaries function