Start by slicing the fennel and mincing garlic. Put them in a heavy pot with about 1 tablespoon vegetable oil, season with salt and pepper, and cook them slowly, for about 40 minutes, until their crunch is gone. (Can skip step if no fennel available; accelerate garlic saute) Place the fennel-garlic mixture in the bottom of the baking dish. Add about 1/3 of the thyme and rosemary leaves. Next, layer the raw zucchini, squash, and tomato slices on top of the fennel-onion mixture. Layer so that the color of each vegetable iis visible. Pack the vegetables tightly—since they will shrink during cooking. Season lightly with salt and pepper. Sprinkle with the grated parmesan cheese, and another 1/3 of the thyme and rosemary. Cook in a 375° oven for 45–60 minutes. The juices will be bubbling and it will start to brown sure. t About 15 minutes before the end of the cooking time, break up the goat cheese over the top and continue baking. When finished, add the remaining herbs and drizzle with good olive oil. Let the gratin rest for 10–15 minutes before serving. This dish can be prepared a day in advance: just leave off the goat cheese, finishing herbs and olive oil until the final bake.