Second Example of a bit of refactoring