Butternut Squash and Apple Gratin

Prepare a 9-by-13-inch baking dish with butter and preheat your oven to 400*F.
Sauté the onions in butter with salt and pepper until tender. Add sherry and sage, cook until liquid has almost reduced.
Layer butternut squash in prepared baking dish, sprinkle with a little salt and freshly ground pepper.
Layer the sautéed onions on top. Layer 1/2 cup gruyere cheese on top. Pour the heavy cream over the entire dish. Layer apple slices on top. Cover with foil and bake 40 – 50 minutes. Remove from oven, top with remaining cheese, return to oven uncovered and brown an additional 10 – 15 minutes. Allow to cool slightly and serve.