getAgency method