Example of refactoring done