Refactors coin_changer kata