Refactored change maker - fewer lines of code, but an absurd number of parentheses