wrote the impl for getCOntacts.