refactoring contacts app begins