Update with refactoring book example