Refactoring. First topology