Refactoring: adding class for example4