addContact method implemented