Refactor

saw this referenced from one of your recent talks, got curious, then started refactoring to help myself understand it.