Melt butter in 2 qt saucepan, sprinkle in flour. Gradually add milk and bring to boiling point. Add thawed corn, salt, pepper, and sugar. Heat thoroughly. Remove from heat and add beaten eggs. Pour into 2 ½ qt buttered baking dish. Bake at 375 degrees for 35 minutes.