Examples from the book "Refactoring: Improving the Design of Existing Code", by Martin Fowler