Refactoring of the AddContact application.