Refactoring exercise Software Engineering