In a skillet, melt butter and add mushrooms & shallots. Cook until browned, about 15 minutes, stir a little bit. Add flour, pepper and salt (to taste) and cook 2 minutes longer. Put in the green beans and half & half and cook thoroughly.