Melt butter.
Add flour and slowly add milk.
Bring to a boil.
Add corn and sugar. Season to taste with salt and pepper.
Add eggs.
Pour into greased baking dish. Bake at 350 F for 30 minutes.