Refactored RubberDuck.java