Melt the butter in a sturdy skillet on low medium heat. Add the shallots and the beans and cover the skillet tightly.
Cook, stirring occasionally, for 20 to 30 minutes, or until the beans are cooked as you like them.
Season to taste with salt and pepper.
Makes 6 servings.