Refactoring: Adding class for example4