Added the implementation of the method getContacts