This is the in-class exercise to refactor poor iterative code to real tested code.