wrote method for adding a new contact and getting user input