Original code with no refactoring. Tests added.