A refactoring practice exercise