My attempt, in various languages, to go through the patterns of refactorings as illustrated in Martin Fowler's book on Refactoring