implement getallPersons method