Exercise from "Refactoring to Pattern": Replace Implicit Tree with Composite